From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.help Subject: saving copies of the messages sent in Gnus Date: Thu, 10 Nov 2011 23:24:14 +0700 Organization: Aioe.org NNTP Server Message-ID: <87sjlw9c9d.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332968205 10760 80.91.229.3 (28 Mar 2012 20:56:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 20:56:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 22:56:45 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCzv7-0003HP-9G for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 22:56:41 +0200 Original-Received: from localhost ([::1]:56764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzv6-0002G3-K4 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 16:56:40 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: 41vvMPMLxfEjizuK6lSUHw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:LOHKkaBMEyyJ0/TTjt08km3Ob2A= Original-Xref: usenet.stanford.edu comp.emacs:101972 gnu.emacs.help:189748 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84178 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =E2=80=A6 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" =2D --=20 FSF associate member #7257 =2D----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 =3DQmE2 =2D----END PGP SIGNATURE-----