[mew-int 01233] mew-real-send-hook isn't
David A. Panariti
davep.mew at example.com
Sat Jan 4 03:06:40 JST 2003
mew-real-send-hook is called from draft mode when using
mew-draft-send-message even if you choose 'n' to the
"Really send this message" prompt.
(prompting requires mew-ask-send be non-nil)
So it is called even when the message isn't really sent.
I have a need to know when the message is *REALLY* sent.
I can think of three solutions:
1) call mew-real-send-hook only if the message is actually sent.
This is what the name implies, but changing this may break people's
existing code in non-obvious ways.
2) Yet another hook: e.g. mew-real-REAL-send-hook :-(
3) Add a flag to the hook. This will break existing code, but it will be
obvious as a lisp error.
This flag is t if really,REALLY sent, nil otherwise.
thanks,
davep
More information about the Mew-int
mailing list