+2001-08-14 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * gnus-delay.el (gnus-delay-send-drafts): Fix check whether
+ deadline has expired.
+
2001-08-12 Simon Josefsson <jas@extundo.com>
Suggested by Kai.Grossjohann@CS.Uni-Dortmund.DE
(interactive)
(save-excursion
(let* ((group (format "nndraft:%s" gnus-delay-group))
- (articles (nndraft-articles))
+ articles
article deadline)
(gnus-activate-group group)
+ (setq articles (nndraft-articles))
(while (setq article (pop articles))
(gnus-request-head article group)
(set-buffer nntp-server-buffer)
(setq deadline (nnheader-header-value))
(setq deadline (apply 'encode-time (parse-time-string deadline)))
(setq deadline (time-since deadline))
- (when (time-less-p (apply 'encode-time
- (parse-time-string deadline))
- (current-time))
- (message "Sending article %d" article)
+ (when (and (>= (nth 0 deadline) 0)
+ (>= (nth 1 deadline) 0))
+ (message "Sending delayed article %d" article)
(gnus-draft-send article group)
- (message "Sending article %d...done" article)))
+ (message "Sending delayed article %d...done" article)))
(message "Delay header missing for article %d" article))))))
;;;###autoload