Re: [notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Alex Ghitza
On Sun, 20 Dec 2009 19:51:05 +0100, a...@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) wrote: On Sun, 20 Dec 2009 13:31:13 -0500, Jameson wrote: There must be a way to tell emacs message-mode to save a copy of outgoing mail locally. Mutt does this with it's Fcc commands (ie. file

Re: [notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Marten Veldthuis
On Mon, 21 Dec 2009 21:08:22 +1100, Alex Ghitza aghi...@gmail.com wrote: 2. of course, filenames need to be unique. Do we want/have to follow the maildir file naming conventions listed at http://cr.yp.to/proto/maildir.html or is it enough to use the Emacs lisp make-temp-file? I'd very much

Re: [notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Carl Worth
On Sun, 20 Dec 2009 15:29:15 +1100, Alex Ghitza aghi...@gmail.com wrote: It looks like we need a way to get the primary email address from the config file. Yes, we definitely need that. Actually, while we're at it, we can consider making this more flexible and adding a new option to the

Re: [notmuch] keeping a copy of sent mail locally

2009-12-20 Thread Jameson Graef Rollins
On Sun, Dec 20, 2009 at 07:22:55PM +0100, Marten Veldthuis wrote: There's a message-send-hook, which we should probably use. Something like: (add-hook 'message-send-hook 'notmuch-always-bcc-sender) (defun notmuch-always-bcc-sender () (message-add-header (concat Bcc:

Re: [notmuch] keeping a copy of sent mail locally

2009-12-20 Thread Adam Sjøgren
On Sun, 20 Dec 2009 13:31:13 -0500, Jameson wrote: There must be a way to tell emacs message-mode to save a copy of outgoing mail locally. Mutt does this with it's Fcc commands (ie. file carbon copy). I think we should look for a solution like this. Gnus uses Gcc for this (see

Re: [notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Jed Brown
On Sat, 19 Dec 2009 15:41:14 +1100, Alex Ghitza aghi...@gmail.com wrote: Bcc-ing myself on every sent message is suboptimal for a number of reasons: (1) gmail throws away the bcc-ed copy since it has the same message id as the one sitting in the gmail sent mail, and so the bcc-ed copy never

Re: [notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Alex Ghitza
On Sat, 19 Dec 2009 02:55:16 -0800, Jed Brown j...@59a2.org wrote: On Sat, 19 Dec 2009 15:41:14 +1100, Alex Ghitza aghi...@gmail.com wrote: Bcc-ing myself on every sent message is suboptimal for a number of reasons: (1) gmail throws away the bcc-ed copy since it has the same message id as

Re: [notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Carl Worth
On Sun, 20 Dec 2009 11:24:52 +1100, Alex Ghitza aghi...@gmail.com wrote: However, if I'm using notmuch in emacs and press 'm' to compose a new message, then the Bcc header is not added automatically and I guess it's not surprising that the rest doesn't work as expected. Yeah, sorry about that.

Re: [notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Alex Ghitza
On Sat, 19 Dec 2009 18:50:17 -0800, Keith Packard kei...@keithp.com wrote: On Sat, 19 Dec 2009 18:37:12 -0800, Carl Worth cwo...@cworth.org wrote: So we need to figure out how to configure (or hook) that to insert the Bcc, and then we can fix notmuch.el to do this without any user

Re: [notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Keith Packard
On Sun, 20 Dec 2009 15:29:15 +1100, Alex Ghitza aghi...@gmail.com wrote: Good. So we can put this in notmuch.el and Keith will get everybody's sent mail. :) That seems sub-optimal, at least for me... It looks like we need a way to get the primary email address from the config file. We