From: Ivan Shmakov <oneingray@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: saving copies of the messages sent in Gnus
Date: Thu, 10 Nov 2011 23:24:14 +0700 [thread overview]
Message-ID: <87sjlw9c9d.fsf@violet.siamics.net> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
… For a long time, I've had the following bit in my ~/.emacs to
save a copy of each of the messages sent with Gnus:
(setq message-default-mail-headers
"Gcc: nnimap+.Maildir:sent\n")
However, I've found that M-x gnus-summary-resend-message (and
perhaps other commands as well) doesn't go through the normal
message set-up process, and thus the messages sent that way
aren't saved.
After taking a look at the sources, I've changed it as follows:
(setq message-default-mail-headers
; "Gcc: nnimap+.Maildir:sent\n"
""
message-send-mail-hook
(list (lambda ()
(gnus-inews-do-gcc "nnimap+.Maildir:sent"))))
However, the gnus-inews-do-gcc function I've used isn't
documented, and while there's gnus-put-message, which is mostly
a wrapper around it, it's too interactive to be used in a hook.
Now I'm curious if I'm safe doing it this way?
; (emacs-version)
"GNU Emacs 23.2.1 (x86_64-pc-linux-gnu)
of 2010-12-12 on brahms, modified by Debian"
- --
FSF associate member #7257
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBAgAGBQJOu/qwAAoJEOhSCjIbp0KhL64P/3ZLds2B/8q36lu/jYWBcmno
zMhLFeGfvvSANmADEum/R03ZCdJTsThQ8Y/FzQFZMhagDF4eX+wY5gTOLsC80gXi
BkG2LCiBVvwVReledJm86UATVh5Z/sznjnytaQ4SfDww/GeWH70N4rKB6Ya9Evmb
SBOZHwSpLCkdpGML2/w/dLcCqnKGX37eiPq56S/FgpVEYegMCEcDBrl/R2++SdUo
ssgrU4fzyME+SsN9rb9Oe4RHN5Z8/QKjkGiUnihZvSlKceVl7zFqEO4IXKDMm59m
P8G4GFA4fpwc2fO9WL7zEBLIRHmJ3hle9aMeZ8sZfVyffHCV3lgIP9xn7mYik8el
f8Ff6xsFWS1xYqI9WTl6etM7SZ2pSi6dXYlZ4XCjw1bU8MVJxOmuUiOIlfKuFtte
qqiyxI2GYE9U0xly0sV2E8T3CTbAf1JiqWt2KVtSajBOY/pZUIdbXfLH8EAu4tge
Hj83xp3fqOnIziY3GcNUZk4AMmeF7HaLtQ7/8WlDV9RWWTCcRMT7tQuO/uTvGj2R
fJSR1T9PqoNmRsJNz42t7qccPsHaWhihWn6RR7CfSvl3eFb6h6aBbSLnD3EcBvu/
kVQazT4DwqFYDGJj/wc0eflIGfd3LFyyLqm/e+j/3AKCsMEyY/ClM9eBTbebwfRL
bdeXrgGxkgYbONAbO1pa
=QmE2
-----END PGP SIGNATURE-----
reply other threads:[~2011-11-10 16:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjlw9c9d.fsf@violet.siamics.net \
--to=oneingray@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).