(substring inbox (+ popmail 3))))))
(message "Getting mail from post office ..."))
(when (or (and (file-exists-p tofile)
- (/= 0 (nth 7 (file-attributes tofile))))
+ (/= 0 (nnheader-file-size tofile)))
(and (file-exists-p inbox)
- (/= 0 (nth 7 (file-attributes inbox)))))
+ (/= 0 (nnheader-file-size inbox))))
(message "Getting mail from %s..." inbox)))
;; Set TOFILE if have not already done so, and
;; rename or copy the file INBOX to TOFILE if and as appropriate.
nnmail-procmail-suffix "$") t)))
(p procmails)
(crash (when (and (file-exists-p nnmail-crash-box)
- (> (nth 7 (file-attributes
- (file-truename nnmail-crash-box))) 0))
+ (> (nnheader-file-size
+ (file-truename nnmail-crash-box)) 0))
(list nnmail-crash-box))))
;; Remove any directories that inadvertantly match the procmail
;; suffix, which might happen if the suffix is "".
nnmail-use-procmail)
procmails)
procmails)
- ((eq nnmail-spool-file 'procmail)
+ ((and group
+ (eq nnmail-spool-file 'procmail))
nil)
((listp nnmail-spool-file)
(append nnmail-spool-file procmails))
;; existance of POPped mail.
(when (or (string-match "^po:" spool)
(and (file-exists-p spool)
- (> (nth 7 (file-attributes (file-truename spool))) 0)))
+ (> (nnheader-file-size (file-truename spool)) 0)))
(nnheader-message 3 "%s: Reading incoming mail..." method)
(when (and (nnmail-move-inbox spool)
(file-exists-p nnmail-crash-box))