;;; Yukihiro Ito <ito@rs.civil.tohoku.ac.jp>
;;; Hidekazu Nakamura <u90121@uis-inf.co.jp>
-;;; Version: 1.53
+;;; Version: 1.54
;;; Keywords: news , mail , offline , gnus
;;;
;;; SPECIAL THANKS
:group 'mail
:group 'news)
-(defconst gnus-offline-version-number "1.53")
+(defconst gnus-offline-version-number "1.54")
(defconst gnus-offline-codename
;; "You may be right" ; 1.40
;; "Chilstie Lee" ; 1.45
;; "Tell her about it" ; 1.50
;; "This night" ; 1.51
;; "Movin'out" ; 1.52
- "Longest night" ; 1.53
-;; "Leave a tender moment alone"
-;; "Back in the U.S.S.R"
+;; "Longest night" ; 1.53
+ "Back in the U.S.S.R" ; 1.54
;; "Running on ice"
;; "This is the time"
;; "A matter of trust"
(defvar string)
(defvar hdr)
(defvar str)
+(defvar ver)
(defvar passwd)
(defvar num)
(defvar gnus-offline-map (make-sparse-keymap))
+;;; To silence byte compiler
+(and
+ (fboundp 'eval-when-compile)
+ (eval-when-compile
+ (save-excursion
+ (beginning-of-defun)
+ (eval-region (point-min) (point)))
+ (let (case-fold-search)
+ (mapcar
+ (function
+ (lambda (symbol)
+ (unless (boundp symbol)
+ (make-local-variable symbol)
+ (eval (list 'setq symbol nil)))))
+ '(:group
+ :prefix :type
+ sendmail-to-spool-directory
+ news-spool-request-post-directory
+ nnspool-version
+ nnagent-version
+ msspool-news-server
+ msspool-news-service
+ gnspool-get-news
+ mail-spool-send
+ news-spool-post
+ gnus-agent-handle-level
+ ))
+ (make-local-variable 'byte-compile-warnings)
+ (setq byte-compile-warnings nil))))
+
(autoload 'message-offline-state "miee"
"Set current status to offline state" t)
;;
(gnus-offline-enable-fetch-mail))
;; fetch only mail for gnus-agent
- (if (eq gnus-offline-news-fetch-method 'nnagent)
- (if (eq gnus-offline-articles-to-fetch 'mail)
- (setq gnus-agent-handle-level gnus-offline-mail-group-level))))
+ (if (and (eq gnus-offline-news-fetch-method 'nnagent)
+ (eq gnus-offline-articles-to-fetch 'mail))
+ (setq gnus-agent-handle-level gnus-offline-mail-group-level)))
;;
;; Change mail group level to handle only mail.
(if (memq gnus-offline-articles-to-fetch '(both news))
(progn
(if gnus-offline-connected
- (progn
- (if (eq gnus-offline-news-fetch-method 'nnagent)
- (progn
- ;; Get New News (gnus-agent)
- (gnus-agent-toggle-plugged t)
-
- ;; fetch articles
- (gnus-agent-fetch-session)
-
- ;; Hang Up line. then set to offline status.
- (if (and gnus-offline-connected
- gnus-offline-auto-hangup)
- (gnus-offline-set-unplugged-state))
-
- ;; All online jobs has done.
- (gnus-offline-after-jobs-done)))
- (if (eq gnus-offline-news-fetch-method 'nnspool)
- ;; Get New News (nnspool)
- (gnspool-get-news)))))))
+ (cond ((eq gnus-offline-news-fetch-method 'nnagent)
+ ;; Get New News (gnus-agent)
+ (gnus-agent-toggle-plugged t)
+
+ ;; fetch articles
+ (gnus-agent-fetch-session)
+
+ ;; Hang Up line. then set to offline status.
+ (if (and gnus-offline-connected
+ gnus-offline-auto-hangup)
+ (gnus-offline-set-unplugged-state))
+
+ ;; All online jobs has done.
+ (gnus-offline-after-jobs-done))
+ (t
+ (if (eq gnus-offline-news-fetch-method 'nnspool)
+ ;; Get New News (nnspool)
+ (gnspool-get-news))))))))
;;
;; Disable fetch mail
;;
(if (eq gnus-offline-mail-treat-environ 'offline)
(progn
(if (eq gnus-offline-news-fetch-method 'nnagent)
- (setq str (format "\n with %s" nnagent-version)
- string (concat gnus-offline-header-string str))
- (setq str (format "\n with %s" nnspool-version)
- string (concat gnus-offline-header-string str)))
+ (setq ver nnagent-version)
+ (setq ver nnspool-version))
+ (setq str (format "\n with %s" ver)
+ string (concat gnus-offline-header-string str))
(gnus-offline-add-custom-header "X-Gnus-Offline-Backend:" string))))
\f
(if (functionp gnus-offline-hangup-function)
(funcall gnus-offline-hangup-function))
(setq gnus-offline-connected nil)
- (gnus-agent-toggle-plugged nil)
+ (if (eq gnus-offline-news-fetch-method 'nnagent)
+ (gnus-agent-toggle-plugged nil))
;; Set send mail/news function to offline functions.
(gnus-offline-set-offline-sendmail-function)
;; Yasuo Okabe
;; Author: Tatsuya Ichikawa <t-ichi@po.shiojiri.ne.jp>
;; Yasuo OKABE <okabe@kuis.kyoto-u.ac.jp>
-;; Version: 1.12
+;; Version: 1.13
;; Keywords: mail , gnus , pop3
;;
;; SPECIAL THANKS
:group 'mail
:group 'news)
-(defconst pop3-fma-version-number "1.12")
+(defconst pop3-fma-version-number "1.13")
(defconst pop3-fma-codename
;; "Feel the wind" ; 0.10
;; "My home town" ; 0.11
;; "J boy" ; 1.00
;; "Blood line" ; 1.10
;; "Star ring" ; 1.11
- "Goodbye Game" ; 1.12
+;; "Goodbye Game" ; 1.12
+ "Love is Gamble" ; 1.13
)
(defconst pop3-fma-version (format "Multiple POP3 account utiliy for Gnus v%s - \"%s\""
pop3-fma-version-number
(defvar movemail-output-buffer " *movemail-out*")
(defvar pop3-fma-commandline-arguments nil)
+;;; To silence byte compiler
+(and
+ (fboundp 'eval-when-compile)
+ (eval-when-compile
+ (save-excursion
+ (beginning-of-defun)
+ (eval-region (point-min) (point)))
+ (let (case-fold-search)
+ (mapcar
+ (function
+ (lambda (symbol)
+ (unless (boundp symbol)
+ (make-local-variable symbol)
+ (eval (list 'setq symbol nil)))))
+ '(:group
+ :prefix :type
+ pop3-maildrop
+ pop3-mailhost
+ ))
+ (make-local-variable 'byte-compile-warnings)
+ (setq byte-compile-warnings nil))))
+
(defun pop3-fma-init-message-hook ()
(add-hook 'mime-edit-translate-hook 'pop3-fma-message-add-header))