Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: drafts (not queue) and message-setup-hook
Date: 04 May 2000 12:22:53 -0400	[thread overview]
Message-ID: <2nr9bii8te.fsf@tiger.jia.vnet> (raw)
In-Reply-To: Pavel.Janik@inet.cz's message of "Thu, 4 May 2000 17:04:01 +0200"

>>>>> "Pavel" == Pavel Janík ml <Pavel.Janik@inet.cz> writes:

Pavel>    From: Shenghuo ZHU <zsh@cs.rochester.edu>
Pavel>    Date: 04 May 2000 10:10:41 -0400

>> Message-setup-hook should not be called if it is in nndraft:queue, but
>> the hook should be called if it is in nndraft:draft, because it has not
>> been set up.

Pavel> I thought, that one can get the draft only via sending mail and
Pavel> C-x C-s so the message is already setup.

Queue and drafts are quite different. The drafts group is used for
auto-saving and unfinished composition, so the characters are
internally encoded, and mml tags are not encoded.  But, the queue
group is used for queuing the mails to be sent, so everything is
setup.

>> By default, the hook is nil, so it does not matter.  What did you
>> put in message-setup-hook?

Pavel> There is my function which is asking me about input method,
Pavel> ispell-directory etc. It also checks if it is a reply or not
Pavel> and if it is, the function tries to guess everything.

If you don't want to run those functions for drafts, you can check the
value of gnus-newsgroup-name in those functions.

-- 
Shenghuo



      reply	other threads:[~2000-05-04 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-04 13:40 Pavel Janík ml.
2000-05-04 14:10 ` Shenghuo ZHU
2000-05-04 15:04   ` Pavel Janík ml.
2000-05-04 16:22     ` Shenghuo ZHU [this message]

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=2nr9bii8te.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).