From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: message-setup-hook called when sending from queue?
Date: 26 Apr 2000 12:37:26 -0400 [thread overview]
Message-ID: <2n3do8ked5.fsf@tiger.jia.vnet> (raw)
In-Reply-To: Pavel.Janik@inet.cz's message of "26 Apr 2000 17:32:18 +0200"
>>>>> "Pavel" == Pavel Janík ml <Pavel.Janik@inet.cz> writes:
Pavel> I have CVS from about an hour ago and still nothing... This is
Pavel> the fix I'm using now:
Pavel> --- gnus-draft.el.orig Wed Apr 26 17:24:32 2000
Pavel> +++ gnus-draft.el Wed Apr 26 17:27:48 2000
Pavel> @@ -188,21 +188,22 @@
Pavel> (progn
Pavel> (defun gnus-draft-setup (narticle group &optional restore)
Pavel> - (gnus-setup-message 'forward
Pavel> + (let ((message-setup-hook nil))
Pavel> + (gnus-setup-message 'forward
This is not good. message-setup-hook is should be set to nil only if
it is in nndraft:queue group and going to be sent.
Now I fixed it in draft-send.
Pavel> (let ((article narticle))
Pavel> (message-mail)
Pavel> (erase-buffer)
Pavel> (if (not (gnus-request-restore-buffer article group))
Pavel> (error "Couldn't restore the article")
Pavel> - ;; Insert the separator.
Pavel> (if (and restore (equal group "nndraft:queue"))
Pavel> (mime-to-mml))
This will make sure that a queued message will not be restored to mml
when it is going to be sent.
Pavel> + ;; Insert the separator.
The comment is moved. Thank you.
Pavel> (goto-char (point-min))
Pavel> (search-forward "\n\n")
Pavel> (forward-char -1)
Pavel> (insert mail-header-separator)
Pavel> (forward-line 1)
Pavel> - (message-set-auto-save-file-name))))))
Pavel> + (message-set-auto-save-file-name)))))))
--
Shenghuo
next prev parent reply other threads:[~2000-04-26 16:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-26 7:41 Pavel Janík ml.
2000-04-26 8:20 ` Shenghuo ZHU
2000-04-26 15:32 ` Pavel Janík ml.
2000-04-26 16:37 ` Shenghuo ZHU [this message]
2000-04-26 20:54 ` Pavel Janík ml.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2n3do8ked5.fsf@tiger.jia.vnet \
--to=zsh@cs.rochester.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).