all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* saving copies of the messages sent in Gnus
@ 2011-11-10 16:24 Ivan Shmakov
  0 siblings, 0 replies; only message in thread
From: Ivan Shmakov @ 2011-11-10 16:24 UTC (permalink / raw
  To: help-gnu-emacs

-----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-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-10 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 16:24 saving copies of the messages sent in Gnus Ivan Shmakov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.