<<< Date Index >>>     <<< Thread Index >>>

Re: unable to set working send-hook



On Thu, Jul 10, 2008 at 11:22:33AM +0200, Ennio-Sr wrote:
> * mimosinnet@xxxxxxxxx <mimosinnet@xxxxxxxxx> [100708, 03:13]:
> > I have also been playing with fcc-hook. I am wondering if
> > there is a similar functionality allowing to save messages (override the 
> > $record variable) depending on the sender (a pattern existing in the From:).
> > 
> > Example:
> > - If I send the message from mimosinnet_AT_yahoo.es, I want to keep a
> >   copy of the mail in ~/.muttrc/record/yahoo
> > - If I send the message from mimosinnet_AT_gmail.com, I want to keep a
> >   copy in ~/.muttrc/record/gmail
> > - If I send the mail from another address, I want to keep the mail in
> >   ~/.muttrc/record 
> 
> I've never used it, so I cannot give you first  hand info. Did you
> follow thw instructions laid out in 'man muttrc'? i.e.:
> 
> --- quote ---
> 
>        fcc-hook [!]pattern filename
>               When  an outgoing message matches pattern, the default file name
>               for storing a copy (fcc) will be the given filename.
> 
>        fcc-save-hook [!]pattern filename
>               This command is an abbreviation for identical fcc-hook and save-
>               hook commands.
> 
> --- unquote ---

I have been able to save messages depending on the 'To:' field with
fcc-hook. For example:
 fcc-hook mimosinnet@gmail\.com ~/.mutt/record/gmail

Saves the messages sent to mimosinnet@xxxxxxxxx to  ~/.mutt/record/gmail. As I 
am using multiple email-addresses, I was wondering if I could save outgoing 
messages depending on the account I am sending from (From: field).

Thanks for the answer!