On Tue, Jul 12, 2011 at 18:55, Marcelo Luiz de Laia
<marcelol...@gmail.com> wrote:
> On Tue, 12 Jul 2011, du yang wrote:
>
>> On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote:
>> > I have fcc-hook in one of my 3 profile, like this:
>> >
>> > ~/.mutt/profile.mymail3
>> > fcc-hook . "+MyMail3/Sent"
>> >
>> > In my muttrc, I have:
>> > unhook send-hook
>> > send-hook . "source ~/.mutt/profile.mymail1\n"
>> > send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward 
>> > signature=''"
>> > send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n"
>> >
>> > When I sent a e-mail to friend1 or friend2, the message is salved at
>> > MyMail3/Sent, what is very nice.
>> >
>> > However, after this action, all other messages that I sent is salved
>> > at this mailbox!
>> >
>> > ~/.mutt/profile.mymail1 don't have fcc-hook seted.
>> >
>>
>> fcc-hook .* "=Sent"
>
> This is not possible because I use gmail (my default profile).
>
>> if you don't want to save mails, you can set the first line to,
>>
>> fcc-hook .* "/dev/null"
>
> If I set this line in gmail profile, all messages is writed to
> /dev/null and fcc-hook . "+MyMail3/Sent" in profile.mymail3 was ignored.

It seems to me the problem is your fcc-hook pattern is too broad.
Currently, fcc-hook is doing exactly what you are telling it to, which
is to match everything.

fcc-hook . "+MyMail3/Sent"

Since this is not what you intend, why not the following?

fcc-hook ^(friend1|friend2) "+MyMail3/Sent"

If that's the only thing your profile.mymail3 does you could just put
it in muttrc.  I find it less confusing to configure all my accounts
in one place instead of separating them into profiles - side effects
of things like the above example are more obvious that way.

Another idea is to unhook fcc-hook inside your profile.mymail1.

Cheers,
Jimmy

Reply via email to