(gnus-delay-send-queue): Delete the delay header
authorKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 18 Jun 2002 14:51:41 +0000 (14:51 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 18 Jun 2002 14:51:41 +0000 (14:51 +0000)
before sending.  Suggested by Jan Rychter.

lisp/ChangeLog
lisp/gnus-delay.el

index 0f6a51a..2784ab0 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-18  Kai Gro\e,b_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+       * gnus-delay.el (gnus-delay-send-queue): Delete the delay header
+       before sending.  Suggested by Jan Rychter.
+
 2002-06-18  Katsumi Yamaoka <yamaoka@jpl.org>
 
        * dgnushack.el (remove): New compiler macro.
index 7e712b8..cb4fc91 100644 (file)
@@ -145,10 +145,14 @@ DELAY is a string, giving the length of the time.  Possible values are:
   (interactive)
   (save-excursion
     (let* ((group (format "nndraft:%s" gnus-delay-group))
+          (message-send-hook (copy-sequence message-send-hook))
           articles
           article deadline)
       (when (gnus-gethash group gnus-newsrc-hashtb)
        (gnus-activate-group group)
+       (add-hook 'message-send-hook
+                 '(lambda ()
+                    (message-remove-header gnus-delay-header)))
        (setq articles (nndraft-articles))
        (while (setq article (pop articles))
          (gnus-request-head article group)