Re: unable to set working send-hook
- To: mutt-users@xxxxxxxx
- Subject: Re: unable to set working send-hook
- From: mimosinnet@xxxxxxxxx
- Date: Thu, 10 Jul 2008 22:00:11 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=XCNPzVHKRyClW9lgKs6lIimPMtFeE/W4tCsSFTwfDkY=; b=PUETzcz4F4lwp14/d0JMXQjBDjGg7bUuTAwT0N3mDssjYbWLTWcOnXO0V+5X9wZmuy FFsWg9yZkZPlxQ+BiQrLmLg1OgNnqkZY81iNkrsXK5bFcikHAnChZBpq+CL7RztRBA2i U43SX733dLYtzq0jyzP56LUofrOU6hZiakewA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=balcPbffpdMdvUW/NN02asrpisLMS13qdKaL/wKlBSOxAkHcua0GI7GUAR9CJjPBm/ PWwCUOxeN6TS+vPBDgKJqg8O6DqZSVACV8kUBpPJckiofmNk+owH1/tXwjutrMZAabmQ jk80apSUvUJShIziuyeVDgF8EaxhP70mut15A=
- In-reply-to: <20080710092233.GA5413@xxxxxxxxxxxx>
- 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: <20080709144641.GA11856@xxxxxxxxxxxx> <20080710011335.GA22841@joanet> <20080710092233.GA5413@xxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-06-09)
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!