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 21:55:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:from; bh=XCNPzVHKRyClW9lgKs6lIimPMtFeE/W4tCsSFTwfDkY=; b=a8qZpuGfX4NehFbzzOmeZNSEayUG4j/YILN+OtBe5RSrDRsXMyrbjbnwMuOU41+8Nb nmp1/5qxbEqX0A7jPBoY51vjbMs7L/5fUZ0vpX9vrTlHsCjPEt4wGPljNkx5jfZMVumL 53K8zTeYG4txbqG5p2oZOEbggGbin5oDMOqyA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:from; b=XUSynSfkQ/wHpzESfheeQq4gYLURp7ZWyf66EVKzEO9InDijcmMeAQetMXkipjNzDE SQw2I8eAcWe3ezJMmTSom+/xg8OWoD+3z6fFTXbpf9CZF9QCMpi8jI2N0JkieTAorX3O 6zeMiaxO27/EBwo4EOoSvf2pV/mHrhLYLwlwc=
- 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!