Re: How to move outgoing mails in different mailboxes
- To: mutt-users@xxxxxxxx
- Subject: Re: How to move outgoing mails in different mailboxes
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 11 Jan 2008 12:42:55 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=zghgd0kNdWkguoKa0EhNiaCJ1+0=; b=NC5YVHRkVQLL5MStz/3Jh4ppQRtTxXer+mKoMw/dXDCvDtrofdFnAdpVuiNDxD2Byhj1ow72319ZyvQExBn/x/psIL2bDCiQlIxbIxx3YRxVmvDwxJ2SVa3Vmag2ZcFOgd4vWE2+aCUIi7xJj3jFznUd2llExi8OJv7RKd/FBlc=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Mzcj7nKpQmlELZlgImS8dadrEVs4TUgmRkneVZyuTmSSR85YEFJfdZXYqYQEDVw51yYiC4aFS7ewyJB8kL3q5lL4KgXsdf0+NHgjRtoXrGSYPae9oZguE9KjI5zlRZIxfjEYs8G5h3d3PX4rWPvYxlOPBjZBdT1WFFDT62/O1H4=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <38b2ab8a0801110919q4f3a7508wbbcb05e2d80f00b4@xxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <38b2ab8a0801110919q4f3a7508wbbcb05e2d80f00b4@xxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2007-12-11)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, January 11 at 06:19 PM, quoth Francis Moreau:
> So now I'd like to move my outgoing emails according to the mailbox
> I'm composing this email:
Let's start with the exception:
> - if I compose an email from a mailing list, I suppose there's no
> need to save anything since I'm going to received a copy of the
> email I wrote (I'm subscribed)
send-hook ~l 'set record='
Now, you'll note that all the rest of these amount to the same thing:
"if I'm in mailbox X, save the message to mailbox X".
> - if I compose an email from my spool mailbox, I'd like mutt to
> save the outgoing message in my spool mailbox;
> - If I compose an email from my project mailboxe I'd like mutt to
> keep a copy in this mailbox.
> - If I compose an email from a personal mailboxe I'd like Mutt to
> keep a copy in this mailbox.
The following will do that:
fcc-hook . ^
The question is: how do you want these two to interact. If you simply
put them both in your muttrc, the fcc-hook will always override the
send-hook. If you'd like the send-hook to override the fcc-hook, use
this (AFTER the fcc-hook) instead:
fcc-hook ~l /dev/null
Alright, technically, that's a hack, since mutt's still saving the
FCC. Unfortunately doing something like this:
fcc-hook ~l ''
... doesn't work.
There are probably a half a dozen other ways of doing this. Here's
another method:
send-hook . 'set record=^'
send-hook ~l 'set record='
~Kyle
- --
This is my simple religion. There is no need for temples; no need for
complicated philosophy. Our own brain, our own heart is our temple;
the philosophy is kindness.
-- Dalai Lama
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHh7ivBkIOoMqOI14RAja7AJ9bZacFf60zTRldeldq4+SuUhEKewCeIz96
VS76zA4gyqv2H9POlSY9KuQ=
=vEBy
-----END PGP SIGNATURE-----