"This variable decides which language will be used for display."))
(eval-when-compile
+ (require 'gnus)
(require 'gnus-offline))
(defvar gnus-offline-setting-file
"(add-hook"
"'message-send-hook"
"'gnus-offline-message-add-header)"))
- (insert "(autoload 'gnus-offline-setup \"gnus-offline\")\n")
- (insert "(add-hook 'gnus-load-hook 'gnus-offline-setup)\n")
;; Write stting about mail-source.el
(insert "(setq gnus-offline-mail-source '"
(gnus-ofsetup-prepare gnus-ofsetup-update-setting-file)))
(load gnus-offline-setting-file))
+
;; Suppport for customizing gnus-ofsetup parameters.
(defvar sendmail-to-spool-directory)
(bury-buffer)
(switch-to-buffer gnus-group-buffer))
+
+;;; Code for making Gnus and Gnus Offline cooperate with each other.
+
+;; advice.
+(defadvice gnus (around gnus-ofsetup-advice activate preactivate)
+ "Setup offline environment when Gnus is invoked."
+ (require 'gnus-offline) ad-do-it (gnus-offline-setup))
+
;; gnus-ofsetup.el Ends here.