Re: copy on a per email basis
- To: mutt-users@xxxxxxxx
- Subject: Re: copy on a per email basis
- From: SK <sk.list@xxxxxxxxx>
- Date: Tue, 12 Feb 2008 20:06:58 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qHhqnLsTAe7pO2dsCsxE1UUi+Lxan5FBXFprCCe7aSg=; b=Ah/02vMHpDsWs9gcOUWEauusvvWJUcWRoixhdCd4noRZzN/Vh20fTUmPCCEszkpfcSw1UYvyrkhA+ox4Xl1hVDlyrx4h9D0tJ5AZ0uofeOyEDKSro75UngwuAv4j+3wsKgCTP3NLWnS6XJGnEpIeyQYSDYsvsiSxYdIyuAiyt5M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I5oGzQoEp13F74aLBLKV5KggC4xc9wDhI1CckRe0KopRRQl2mjnTeMo+bVR/axfoBhpBQSdcwk0k1FMEiBSP1aIJltFOz2n7JTLhiNPxmLK+Zg9AXCa1vlJX5bjGm9qqbCR/Oo5i9Mx5Fvj/tjjsj4I0Lmg9955X4GklfDn7RwA=
- In-reply-to: <20080212184420.GA2383@xxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- References: <6ca73f650802121010h39f2f3fas65d626f319477c95@xxxxxxxxxxxxxx> <20080212184420.GA2383@xxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
Thanks for the informative reply Kyle. I think I will use the fcc-hook
way but before that, just to reconfirm - there is no simple option
(say a key binding) that is equivalent to checking the "Save in Sent
Mail" checkbook of a web based email client?
Thanks,
SK
On Feb 12, 2008 7:44 PM, Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday, February 12 at 07:10 PM, quoth SK:
>
> > As far as I read the amanual, "set copy" allows one to specify
> > whether to keep a copy of all sent emails. Is there any way in which
> > I can disable this behavior by default (i.e. unset copy) but in the
> > compose window speficy that I want to keep a copy on a per-email
> > basis? Of course I can CC or BCC myself but that is too much "work"
> > :)
>
> Well, copy is a quad-option, meaning that you can tell mutt to ask you
> every time. The valid options are: yes, no, ask-yes, and ask-no (the
> two variants of ask specify what the default will be when it asks).
>
> But if you read the manual (or rather, the muttrc man page), the
> description of the $copy option directs you to also check out
> fcc-hook, which will allow you to specify where (or if) to save the
> message based on pattern matching (e.g. who the email is addressed to,
> what the subject line is, that sort of thing).
>
> For example, you could create a pair of hooks to make sure that
> messages aren't saved if they're destined for yourself already:
>
> fcc-hook . '=Sent' # default
> fcc-hook ~p '/dev/null' # don't save things addressed to me
>
> Adding another would make sure that copies aren't saved for messages
> to the mutt mailing list:
>
> fcc-hook '~C mutt@xxxxxxxx' /dev/null
>
> Or, if you've told mutt all about your subscribed mailing lists, you
> could do this:
>
> fcc-hook ~u /dev/null
>
> Now, I'm pulling a bit of a fast one on you, because saving a message
> to /dev/null isn't *exactly* the same as not saving it. All that does
> is ensure that it doesn't get stored anywhere, but mutt still goes to
> the effort of writing it to /dev/null. Unfortunately, you can't use
> fcc-hook to specify "nothing". For example, this won't work:
>
> fcc-hook ~u ""
>
> I'm not sure why. But I can tell you that there's a way around it, if
> the /dev/null trick doesn't sit well with you. Here's what I do:
>
> set copy=yes
> send-hook . 'set record="=Sent"'
> send-hook ~u 'set record='
> send-hook ~p 'set record='
>
> That way, mutt doesn't even spend its time writing the message to
> /dev/null. But going that far is being anal, and could only possibly
> be an inconvenience for extremely large emails. That's just the kind
> of guy I am, though. :)
>
> ~Kyle
> - --
> The only fool bigger than the person who knows it all is the person
> who argues with him.
> -- Stanislaw Jerszy Lec
> -----BEGIN PGP SIGNATURE-----
> Comment: Thank you for using encryption!
>
> iD8DBQFHsekEBkIOoMqOI14RAuj/AJwKruSo9rkefFaiZlRWKvZQg57+kACgr9c7
> P67MsOoMp/Y+Sxpy+aGkBDQ=
> =Eo9d
> -----END PGP SIGNATURE-----
>