Re: .procmailrc configurations
On Wed, Jan 23, 2013 at 12:29:47PM -0500, Patrick Shanahan wrote: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ AFAIR, maildir doesn't need locking whereas mbox does, so compare: :0: to :0 i.e. no trailing semicolon. -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X
Re: .procmailrc configurations
On Sat, Jan 26, 2013 at 02:18:37AM +1300, Chris Bannister wrote: On Wed, Jan 23, 2013 at 12:29:47PM -0500, Patrick Shanahan wrote: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ AFAIR, maildir doesn't need locking whereas mbox does, so compare: :0: to :0 i.e. no trailing semicolon. Thanks! To make procmail wok fine . is a .forward file in my home dir a must ? -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [01-25-13 08:50]: On Sat, Jan 26, 2013 at 02:18:37AM +1300, Chris Bannister wrote: [...] AFAIR, maildir doesn't need locking whereas mbox does, so compare: :0: to :0 i.e. no trailing semicolon. Thanks! To make procmail wok fine . is a .forward file in my home dir a must ? man procmail -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
Incoming from Patrick Shanahan: * horseriver horseriv...@gmail.com [01-25-13 08:50]: To make procmail wok fine . is a .forward file in my home dir a must ? man procmail Even better: http://www.procmail.org/era/lists.html If we discussed everything that works with mutt on the mutt-users list, any mention of mutt itself would be difficult to find. That would be unfortunate. I apologize if I've done anything to encourage that (and I likely have; stopping now). Have a lovely weekend! :-) -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -
Re: .procmailrc configurations
On Thu, Jan 24, 2013 at 12:18:21AM -0700, s. keeling wrote: Incoming from horseriver: On Wed, Jan 23, 2013 at 01:46:54PM -0700, Robert Holtzman wrote: On Wed, Jan 23, 2013 at 10:58:37AM +0800, horseriver wrote: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org Read this: http://www.ii.com/internet/robots/procmail/qs/ Is your mutt directory really named mutt-users@mutt.org? Why? In your recipe, ^to should be ^TO_ As far as I know, both work. ^TO is special in procmail, but ^to: (as a regexp) works too. I have modified my procmailrc like this . Like what? Then, Need I retrieve mails from pop server ? or just restart mutt to see the result? Too many questions. I used fetchmail to pop mails before. It supports a keep directive. You can pop and pop and pop, and still all your mail will be left on the server. Delete the keep from your config, and they'll be deleted when popped. Another question: How does mutt call procmail to sort mails ? In mutt doesn't call procmail. They're separate processes. In my case (before), fetchmail pops from my ISP's Smarthost, that hands it to local Mail Delivery Agent (procmail), and mutt picks it up from there once it's delivered into ~mail. my muttrc file , I have not tell mutt to call procmail to sort mails .so how mutt know that? procmail can sort incoming mails. mutt just looks for them (mailboxes) once they arrive. OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [01-24-13 05:07]: OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? it would be better: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ = reference: man procmail man proxmailsc man procmailex man procmailrc -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
On Thu, Jan 24, 2013 at 08:38:08AM -0500, Patrick Shanahan wrote: * horseriver horseriv...@gmail.com [01-24-13 05:07]: OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? it would be better: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ = Thanks! But I really do not know what is mdir and maildir , what is the difference between them ? reference: man procmail man proxmailsc man procmailex man procmailrc -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [01-24-13 09:57]: On Thu, Jan 24, 2013 at 08:38:08AM -0500, Patrick Shanahan wrote: * horseriver horseriv...@gmail.com [01-24-13 05:07]: OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? it would be better: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ = Thanks! But I really do not know what is mdir and maildir , what is the difference between them ? reference: man procmail man proxmailsc man procmailex man procmailrc sorry, that mdir s/b mbox mbox stores multiple emails in a single file while maildir separates each email into separate files. There are advantages and dis-advantages to each format. Personally, I use mbox but have a great number of locally stored emails. spending some time reading the above references for procmail, reading the mutt documentation and googling for mbox and maildir formats will greatly enhance your understanding and make it possible for you to make intelligent decisions rather than just jumping on-board whatever happens to be in front of you. google *is* your friend. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
Incoming from Patrick Shanahan: * horseriver horseriv...@gmail.com [01-24-13 09:57]: But I really do not know what is mdir and maildir , what is the difference between them ? That was confusing me too. Fneh. :-| You really should do this, btw. Good advice. It's all good reading: reference: man procmail man proxmailsc man procmailex man procmailrc sorry, that mdir s/b mbox mbox stores multiple emails in a single file while maildir separates each email into separate files. There are advantages and dis-advantages to each format. Personally, I use mbox but have a great number of locally stored emails. Additionally, procmail *may* work best with mbox (both work though), but IMAP is maildir. spending some time reading the above references for procmail, reading the mutt documentation and googling for mbox and maildir formats will greatly enhance your understanding and make it possible for you to make intelligent decisions rather than just jumping on-board whatever happens to be in front of you. Good advice. google *is* your friend. Alternatively, https://www.ixquick.com/ - It has a do it via google feature built into it. -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -
Re: .procmailrc configurations
On Thu, Jan 24, 2013 at 12:18:21AM -0700, s. keeling wrote: Incoming from horseriver: On Wed, Jan 23, 2013 at 01:46:54PM -0700, Robert Holtzman wrote: snip Read this: http://www.ii.com/internet/robots/procmail/qs/ Is your mutt directory really named mutt-users@mutt.org? Why? In your recipe, ^to should be ^TO_ As far as I know, both work. ^TO is special in procmail, but ^to: (as a regexp) works too. I tried that once by mistake (I had meant to write *TO_) and it didn't work until I changed it. Too long ago for me to remember the procmail version. .snip -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279 signature.asc Description: Digital signature
Re: .procmailrc configurations
* s. keeling keel...@nucleus.com [01-24-13 12:06]: Incoming from Patrick Shanahan: mbox stores multiple emails in a single file while maildir separates each email into separate files. There are advantages and dis-advantages to each format. Personally, I use mbox but have a great number of locally stored emails. Additionally, procmail *may* work best with mbox (both work though), but IMAP is maildir. moxnix, procmail *works* equally well with either as long as procedure is followed, esp. trailing slash for dirs. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
On Thu, Jan 24, 2013 at 08:23:02AM +0800, horseriver wrote: snip. OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? Did you try it? If not, why? You're not doing your homework. -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279 signature.asc Description: Digital signature
Re: .procmailrc configurations
* Robert Holtzman hol...@cox.net [01-24-13 13:27]: On Thu, Jan 24, 2013 at 08:23:02AM +0800, horseriver wrote: snip. OK! Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? Did you try it? If not, why? You're not doing your homework. em, just noticed trailing : missing on recipie declaration. A *necessary* lock for mbox delivery. Do not see where $MAILDIR points. No one can tell you when you continually provide insufficient information for valuation. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
Incoming from Robert Holtzman: On Thu, Jan 24, 2013 at 08:23:02AM +0800, horseriver wrote: Here is my config: :0 * ^TO_: mutt-users@mutt.org $MAILDIR/mutt can it works ? Did you try it? If not, why? You're not doing your homework. Specifically: VERBOSE=yes in your .procmailrc, then tail -N $your_procmail_log_file where N == number of lines to display. Note you can wrap each recipe in your .procmailrc with VERBOSE=yes VERBOSE=no pairs to test each new recipe by itself. -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -
Re: .procmailrc configurations
Thanks! There is no log file generated in the $PMDIR/. Here is my .procmailrc: VERBOSE=yes # Upon debugging remove the # LOGABSTRACT=all MAILDIR=$HOME/Mail PMDIR=$HOME/procmail #procmail home dir LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/test.rc INCLUDERC=$PMDIR/lists.rc what is the reason ? I am googling for this answer .
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [01-24-13 23:25]: Thanks! There is no log file generated in the $PMDIR/. Here is my .procmailrc: VERBOSE=yes # Upon debugging remove the # LOGABSTRACT=all MAILDIR=$HOME/Mail PMDIR=$HOME/procmail #procmail home dir LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/test.rc INCLUDERC=$PMDIR/lists.rc what is the reason ? I am googling for this answer . is $HOME/procmail actually a directory or a file do $PMDIR/test.rc and $PMDIR/lists.rc actually exist? please provide: ls -lad ~/procmail then try with: LOGFILE=$PMDIR/log good idea: enclose in quotes any chars that would normally be escaped, ie: / as $PMDIR/log -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
* Patrick Shanahan ptilopt...@gmail.com [01-24-13 23:36]: * horseriver horseriv...@gmail.com [01-24-13 23:25]: Thanks! There is no log file generated in the $PMDIR/. Here is my .procmailrc: VERBOSE=yes # Upon debugging remove the # LOGABSTRACT=all MAILDIR=$HOME/Mail PMDIR=$HOME/procmail #procmail home dir LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/test.rc INCLUDERC=$PMDIR/lists.rc what is the reason ? I am googling for this answer . is $HOME/procmail actually a directory or a file do $PMDIR/test.rc and $PMDIR/lists.rc actually exist? please provide: ls -lad ~/procmail then try with: LOGFILE=$PMDIR/log good idea: enclose in quotes any chars that would normally be escaped, ie: / as $PMDIR/log Also: I would declare LOGFILE before VERBOSE and LOGABSTRACT, although it may make no diff. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
.procmailrc configurations
hi: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org thanks
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [2013-01-23 13:42]: hi: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org thanks I use a more generic approach for this since years: # 'Simple' mailing-lists :0 * ^List-Post:.*mailto:\/[^@]+ $MAILSPOOL/.Mailinglists.$MATCH/ # generic filter for yahoogroups lists :0 * ^Mailing-List: list .*@yahoogroups\..*; * ^Mailing-List: list \/[a-z_0-9-]+ $MAILSPOOL/.Mailinglists.$MATCH/ Note that this is *on* the IMAP server itself! Your mileage may vary ... HTH Stefan pgpVLU0l0MOCA.pgp Description: PGP signature
Re: .procmailrc configurations
Incoming from horseriver: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org .^^^ That should be a file (mbox) or folder (maildir). Otherwise it looks good. -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -
Re: .procmailrc configurations
* horseriver horseriv...@gmail.com [01-01-70 12:34]: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org it would be better: for mdir = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users = for maildir, note trailing / in the assigned location = MAILDIR=$HOME/mail ## your mail dir below /home/user :0: * ^TO_mutt/-users/@mutt/.org $MAILDIR/mutt-users/ = reference: man procmail man proxmailsc man procmailex man procmailrc -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: .procmailrc configurations
On Wed, Jan 23, 2013 at 10:58:37AM +0800, horseriver wrote: hi: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org thanks This is a configuration that I used to use: # Mailing List Classification {{{ # This is a method/recipe that I ganked from [1]. I liked the idea of # # separating filtering out into 'classicifation' and 'delivery' # phases. # # Sources # --- # [1]: http://aperiodic.net/phil/configs/procmailrc # most lists; RFC-2919 :0 fhw * ^((List-Id|X-(Mailing-)?List):(.*[]\/[^@\.\/]*)) | formail -I X-List-Classify: $MATCH # majordomo :0 fhw * ^Sender: owner-[^@]+@[^@\+]+ * ^Sender: owner-\/[^@\+\.\/]+ | formail -I X-List-Classify: $MATCH # librelist.com mailing lists :0 fhw * ^List-Id: \/[^@]+@librelist\.(com|org) { LISTID=cho $MATCH | sed -e 's/@librelist\.\(com\|org\)//' :0 fhw |formail -I X-List-Classify: $LISTID } # yahoogroups :0 fhw * ^Mailing-List: list \/[^@\.\/]+ | formail -I X-List-Classify: $MATCH # ezmlm :0 * ^Mailing-List: contact \/[^@\+\.\/]+ { LISTID=cho $MATCH | sed -e 's/-help$//' :0 fhw | formail -I X-List-Classify: $LISTID } Even with that, some things specific required intervention. Some lists have generic names like 'alerts': # All of the CERT listnames are generic (e.g. 'alerts') so, just throw # them all under a single listname that makes sense. :0 fhw * ^List-Id: .*us-cert\.gov | formail -I X-List-Classify: us-cert Or: :0 fhw * ^Reply-To: *Bug [0-9]+ [0-9]+@bugs\.launchpad\.net | formail -I X-List-Classify: launchpad Then there was mailing list delivery (after using X-List-Classify to sort): # Mailing List Delivery {{{ # This is a method/recipe that I ganked from [1]. I liked the idea of # separating filtering out into 'classicifation' and 'delivery' phases. # # Sources # --- # [1]: http://aperiodic.net/phil/configs/procmailrc :0 * ^X-List-Classify: \/[0-9a-z-]+ { LIST=$MATCH LOG=[list=$LIST] # Short-Ciruit {{{ ## # Short-Circuit # Deal with mailing list emails that should end up in the inbox # instead of on the mailing list. # # # List management email go to the inbox :0 * ^Message-ID: mailman $DEFAULT/ # # List management emails from ezmlm go to the inbox :0 * ^Message-ID: [0-9.]+.ezmlm-warn@ $DEFAULT/ # # zsh-users doesn't match the pattern above, so look for the # LISTNAME-help pattern :0 * ^Mailing-List: contact $LIST-help $DEFAULT/ # }}} [...] # For reading. :0 c lists.$LIST/ # Prepare for the archive. :0 fhw | formail -I Received -I Delivered-To # Archive locally. :0 archives.$LIST/ } # }}} In general though, I just cut back on most of the mailing lists that I was on (as I rarely read them all). Now everything just hits my inbox. Note: This setup is stupidly complex, but it should give you some ideas of what you can do and some of the general header patterns that some mailing list software follows. I also clipped out some of the mailing list cleanup recipes I had (i.e. removing [LIST-NAME] from the subject; compressing strands of Re:s down to a single one; etc). -- Brandon Sandrowicz
Re: .procmailrc configurations
On Wed, Jan 23, 2013 at 10:58:37AM +0800, horseriver wrote: hi: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org Read this: http://www.ii.com/internet/robots/procmail/qs/ Is your mutt directory really named mutt-users@mutt.org? Why? In your recipe, ^to should be ^TO_ -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279 signature.asc Description: Digital signature
Re: .procmailrc configurations
On Wed, Jan 23, 2013 at 10:17:45AM -0700, s. keeling wrote: Incoming from horseriver: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org .^^^ That should be a file (mbox) or folder (maildir). Otherwise it looks good. Not true. ^to should be ^TO_ -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279 signature.asc Description: Digital signature
Re: .procmailrc configurations
On Wed, Jan 23, 2013 at 01:46:54PM -0700, Robert Holtzman wrote: On Wed, Jan 23, 2013 at 10:58:37AM +0800, horseriver wrote: hi: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org Read this: http://www.ii.com/internet/robots/procmail/qs/ Is your mutt directory really named mutt-users@mutt.org? Why? In your recipe, ^to should be ^TO_ Thanks! I have modified my procmailrc like this . Then, Need I retrive mails from pop server ? or just restart mutt to see the result? Another question: How does mutt call procmail to sort mails ? In my muttrc file , I have not tell mutt to call procmail to sort mails .so how mutt know that? -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279
Re: .procmailrc configurations
Incoming from horseriver: On Wed, Jan 23, 2013 at 01:46:54PM -0700, Robert Holtzman wrote: On Wed, Jan 23, 2013 at 10:58:37AM +0800, horseriver wrote: How to edit my .procmailrc to put mails from different mail list into different maildir? can this work : :0 * ^to: mutt-users@mutt.org mutt-users@mutt.org Read this: http://www.ii.com/internet/robots/procmail/qs/ Is your mutt directory really named mutt-users@mutt.org? Why? In your recipe, ^to should be ^TO_ As far as I know, both work. ^TO is special in procmail, but ^to: (as a regexp) works too. I have modified my procmailrc like this . Like what? Then, Need I retrieve mails from pop server ? or just restart mutt to see the result? Too many questions. I used fetchmail to pop mails before. It supports a keep directive. You can pop and pop and pop, and still all your mail will be left on the server. Delete the keep from your config, and they'll be deleted when popped. Another question: How does mutt call procmail to sort mails ? In mutt doesn't call procmail. They're separate processes. In my case (before), fetchmail pops from my ISP's Smarthost, that hands it to local Mail Delivery Agent (procmail), and mutt picks it up from there once it's delivered into ~mail. my muttrc file , I have not tell mutt to call procmail to sort mails .so how mutt know that? procmail can sort incoming mails. mutt just looks for them (mailboxes) once they arrive. -- Any technology distinguishable from magic is insufficiently advanced. (*) :(){ :|: };: - -