[notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Alex Ghitza
On Sun, 20 Dec 2009 13:31:13 -0500, Jameson Graef Rollins wrote: > Hi, folks. I've been following this thread a bit and I wanted to put > in my argument that using Bcc is *NOT* the way to save local copies of > sent mail. I really don't think that we need to require that the mail > actually get

[notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Adrien BUSTANY
On Mon, 21 Dec 2009 09:27:04 -0800, Carl Worth wrote: > On Sun, 20 Dec 2009 15:29:15 +1100, Alex Ghitza 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

[notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Carl Worth
On Mon, 21 Dec 2009 20:39:01 +0100, Adrien BUSTANY wrote: > On Mon, 21 Dec 2009 09:27:04 -0800, Carl Worth wrote: > > > > I think we want a new C file to make it easy to ask for options out of > > the configuration file. > > What about adding a way to get/set config variables from the notmuch

[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 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 prefer a real

[notmuch] keeping a copy of sent mail locally

2009-12-21 Thread Jameson Graef Rollins
On Mon, Dec 21, 2009 at 08:57:40PM +1100, Alex Ghitza wrote: > On Sun, 20 Dec 2009 13:31:13 -0500, Jameson Graef Rollins finestructure.net> wrote: > > Hi, folks. I've been following this thread a bit and I wanted to put > > in my argument that using Bcc is *NOT* the way to save local copies of >

[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 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 config file (e.g.

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

[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

[notmuch] keeping a copy of sent mail locally

2009-12-20 Thread Marten Veldthuis
On Sat, 19 Dec 2009 21:02:18 -0800, Keith Packard wrote: > We actually want to let the user *select* an email address from the > config file, and then automagically set the bcc: flag as > appropriate. Without that, I'd end up bcc'ing all of my mail through my > home address, which would end up

[notmuch] keeping a copy of sent mail locally

2009-12-20 Thread Alex Ghitza
On Sat, 19 Dec 2009 18:50:17 -0800, Keith Packard wrote: > On Sat, 19 Dec 2009 18:37:12 -0800, Carl Worth 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 configuration. > > Just call: >

[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: " >

[notmuch] keeping a copy of sent mail locally

2009-12-20 Thread Alex Ghitza
On Sat, 19 Dec 2009 02:55:16 -0800, Jed Brown wrote: > On Sat, 19 Dec 2009 15:41:14 +1100, Alex Ghitza 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

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

[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 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 actually want to

[notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Keith Packard
On Sat, 19 Dec 2009 18:37:12 -0800, Carl Worth 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 configuration. Just call: (message-mail nil nil '(("bcc" "keithp at keithp.com"))) instead of

[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 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. That's a

[notmuch] keeping a copy of sent mail locally

2009-12-19 Thread Alex Ghitza
Hello, Many thanks to Marten and Carl for the advice on using scripts for assigning tags automatically. It works like a charm. The next hurdle seems to be dealing with sent mail. I would like each message that I send to be saved in my local mail folder and treated the same as all my other

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

[notmuch] keeping a copy of sent mail locally

2009-12-18 Thread Alex Ghitza
Hello, Many thanks to Marten and Carl for the advice on using scripts for assigning tags automatically. It works like a charm. The next hurdle seems to be dealing with sent mail. I would like each message that I send to be saved in my local mail folder and treated the same as all my other