How to filter sent mail? Is there a way?

This is a discussion on How to filter sent mail? Is there a way? within the Mutt forums in Other Technologies category; Mutt is a GREAT client. I've recently switched over to it 100% after using it off and on along with Sylpheed, Kmail, and 'another email client' (cough) I don't want to (cough) mention. Currently, all my sent mail goest to +sent via the set record=+sent line in my .muttrc. My sent folder is getting huge (thousands) and takes a long time to open. What I'd like to do is have mutt automatically store some of these to different folders based on recipient - not all of them, necessarily, but some of the high-volume ones. In otherwords, say I send reports ...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-10-2004, 04:21 PM
Jeffrey Cunningham
Guest
 
Default How to filter sent mail? Is there a way?

Mutt is a GREAT client. I've recently switched over to it 100% after using
it off and on along with Sylpheed, Kmail, and 'another email client'
(cough) I don't want to (cough) mention.

Currently, all my sent mail goest to +sent via the set record=+sent line
in my .muttrc. My sent folder is getting huge (thousands) and takes a long
time to open. What I'd like to do is have mutt automatically store some of
these to different folders based on recipient - not all of them,
necessarily, but some of the high-volume ones.

In otherwords, say I send reports daily to pointyhead@work.com. Is
there a way to have mutt put copies of those emails in +pointyhead?

Thanks.
Jeff
Reply With Quote
  #2  
Old 05-10-2004, 06:32 PM
John Cordes
Guest
 
Default Re: How to filter sent mail? Is there a way?

Jeffrey Cunningham <jeffrey.k.cunningham@boeing.com> wrote:
> Mutt is a GREAT client. I've recently switched over to it 100% after using
> it off and on along with Sylpheed, Kmail, and 'another email client'
> (cough) I don't want to (cough) mention.
>
> Currently, all my sent mail goest to +sent via the set record=+sent line
> in my .muttrc. My sent folder is getting huge (thousands) and takes a long
> time to open. What I'd like to do is have mutt automatically store some of
> these to different folders based on recipient - not all of them,
> necessarily, but some of the high-volume ones.
>
> In otherwords, say I send reports daily to pointyhead@work.com. Is
> there a way to have mutt put copies of those emails in +pointyhead?
>
> Thanks.
> Jeff


Certainly. I make extensive use of 'save-hook' and also
'fcc-hook'. E.g.

For saving messages based in the from address:
save-hook peter@llama =peter

and for outgoing mail sent to peter (this is what you were asking
about):
fcc-hook peter =peter

I suggest you check the manual for these two hooks (there are
others). If anything is unclear post back to the ng.

--
John Cordes
Reply With Quote
  #3  
Old 05-11-2004, 11:51 AM
Jeffrey Cunningham
Guest
 
Default Re: How to filter sent mail? Is there a way?

On Mon, 10 May 2004 22:32:23 +0000, John Cordes wrote:

> Jeffrey Cunningham <jeffrey.k.cunningham@boeing.com> wrote:
>> Mutt is a GREAT client. I've recently switched over to it 100% after using
>> it off and on along with Sylpheed, Kmail, and 'another email client'
>> (cough) I don't want to (cough) mention.
>>
>> Currently, all my sent mail goest to +sent via the set record=+sent line
>> in my .muttrc. My sent folder is getting huge (thousands) and takes a long
>> time to open. What I'd like to do is have mutt automatically store some of
>> these to different folders based on recipient - not all of them,
>> necessarily, but some of the high-volume ones.
>>
>> In otherwords, say I send reports daily to pointyhead@work.com. Is
>> there a way to have mutt put copies of those emails in +pointyhead?
>>
>> Thanks.
>> Jeff

>
> Certainly. I make extensive use of 'save-hook' and also
> 'fcc-hook'. E.g.
>
> For saving messages based in the from address:
> save-hook peter@llama =peter
>
> and for outgoing mail sent to peter (this is what you were asking
> about):
> fcc-hook peter =peter
>
> I suggest you check the manual for these two hooks (there are
> others). If anything is unclear post back to the ng.


Thank you. This is *exactly* what I am looking for. And it works great.

-Jeff
Reply With Quote
  #4  
Old 05-11-2004, 12:02 PM
Jeffrey Cunningham
Guest
 
Default Re: How to filter sent mail? Is there a way?

On Mon, 10 May 2004 22:32:23 +0000, John Cordes wrote:

>
> I suggest you check the manual for these two hooks (there are
> others). If anything is unclear post back to the ng.


Here's something I don't quite understand: the difference between a
save-hook and fcc-save-hook. The way I read the manual it would appear
they do exactly the same thing. Here are the manual descriptions:

Usage: save-hook [!]pattern filename

This command is used to override the default filename used when saving
messages. filename will be used as the default filename if the message is
From: an address matching regexp or if you are the author and the message
is addressed to: something matching regexp.

Usage: fcc-hook [!]pattern mailbox

This command is used to save outgoing mail in a mailbox other than $record. Mutt searches the initial list of message recipients for the first matching regexp and uses mailbox as the default Fcc: mailbox. If no match is found the message will be saved to $record mailbox.

Usage: fcc-save-hook [!]pattern mailbox

This command is a shortcut, equivalent to doing both a fcc-hook and a
save-hook with its arguments.

I'm probably not reading it right.

-Jeff

Reply With Quote
  #5  
Old 05-11-2004, 12:40 PM
John Cordes
Guest
 
Default Re: How to filter sent mail? Is there a way?

Jeffrey Cunningham <jeffrey.k.cunningham@boeing.com> wrote:
> On Mon, 10 May 2004 22:32:23 +0000, John Cordes wrote:
>> I suggest you check the manual for these two hooks (there are
>> others). If anything is unclear post back to the ng.

>
> Here's something I don't quite understand: the difference between a
> save-hook and fcc-save-hook. The way I read the manual it would appear
> they do exactly the same thing. Here are the manual descriptions:
>
> Usage: save-hook [!]pattern filename
>
> This command is used to override the default filename used when saving
> messages. filename will be used as the default filename if the message is
> From: an address matching regexp or if you are the author and the message
> is addressed to: something matching regexp.
>
> Usage: fcc-hook [!]pattern mailbox
>
> This command is used to save outgoing mail in a mailbox other
> than $record. Mutt searches the initial list of message
> recipients for the first matching regexp and uses mailbox as the
> default Fcc: mailbox. If no match is found the message will be
> saved to $record mailbox.
>
> Usage: fcc-save-hook [!]pattern mailbox
>
> This command is a shortcut, equivalent to doing both a fcc-hook
> and a save-hook with its arguments.
>
> I'm probably not reading it right.
> -Jeff


First off, I didn't mean to sound as though *I* would know the
answers; I'm very far indeed from being a mutt expert. I hope that
someone who actually knows what they're talking about will correct
and supplement anything I say.

I didn't even know about the combination fcc-save-hook. I would
have thought it could be used to replace, for example, two
lines I have now:
save-hook dburbury =genealogy
fcc-hook dburbury =genealogy
with
fcc-save-hook dburbury =genealogy

I haven't tested this, however. Isn't that the way you would read
it?

--
John Cordes
Reply With Quote
  #6  
Old 05-11-2004, 04:09 PM
Jeffrey Cunningham
Guest
 
Default Re: How to filter sent mail? Is there a way?

On Tue, 11 May 2004 16:40:43 +0000, John Cordes wrote:
>
> I didn't even know about the combination fcc-save-hook. I would
> have thought it could be used to replace, for example, two
> lines I have now:
> save-hook dburbury =genealogy
> fcc-hook dburbury =genealogy
> with
> fcc-save-hook dburbury =genealogy
>
> I haven't tested this, however. Isn't that the way you would read
> it?


Yes, that's what it says to me. But it the manual seems to state that the
save-hook also saves matches in either direction. I tried them both and
they both seem to work the same way. If that's the case, one is redundant,
unless it does something else as well.

-Jeff
Reply With Quote
  #7  
Old 05-11-2004, 07:18 PM
John Cordes
Guest
 
Default Re: How to filter sent mail? Is there a way?

Jeffrey Cunningham <jeffrey.k.cunningham@boeing.com> wrote:
> On Tue, 11 May 2004 16:40:43 +0000, John Cordes wrote:
>>
>> I didn't even know about the combination fcc-save-hook. I
>> would have thought it could be used to replace, for example,
>> two lines I have now:
>> save-hook dburbury =genealogy
>> fcc-hook dburbury =genealogy
>> with
>> fcc-save-hook dburbury =genealogy
>>
>> I haven't tested this, however. Isn't that the way you would
>> read it?

>
> Yes, that's what it says to me. But it the manual seems to state
> that the save-hook also saves matches in either direction. I
> tried them both and they both seem to work the same way. If
> that's the case, one is redundant, unless it does something else
> as well.
>
> -Jeff


I don't believe that save-hook alone saves matches in either
direction, as you put it. I have always needed fcc-hook to have
outgoing ('sent') mail put into a specified directory.

--
John Cordes
Reply With Quote
  #8  
Old 05-12-2004, 05:24 PM
Jeffrey Cunningham
Guest
 
Default Re: How to filter sent mail? Is there a way?

On Tue, 11 May 2004 23:18:56 +0000, John Cordes wrote:

>
> I don't believe that save-hook alone saves matches in either
> direction, as you put it. I have always needed fcc-hook to have
> outgoing ('sent') mail put into a specified directory.


I just tried it. You're right. fcc-save-hook saves outgoing messages,
whereas save-hook only saves incoming messages. The manual needs to be
corrected on the latter, I guess.

-Jeff
Reply With Quote
  #9  
Old 05-17-2004, 02:14 PM
Paul Walker
Guest
 
Default Re: How to filter sent mail? Is there a way?

On Wed, 12 May 2004 21:24:55 GMT, Jeffrey Cunningham wrote:

> I just tried it. You're right. fcc-save-hook saves outgoing messages,
> whereas save-hook only saves incoming messages. The manual needs to be
> corrected on the latter, I guess.


Why? The manual looks perfectly correct in what it says - a save-hook
controls where a message is 's'aved, an fcc-hook changes the fcc used to
hold an outgoing message, and the fcc-save-hook does both.

Either that, or I've misunderstood your problem. ;-)

--
Paul

Sorry, I'm tired and hungry. Feed me and let me go to sleep, ok?
- .sigmonster
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:04 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.