| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.