Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2017-03-30 Thread Sam Varshavchik
li...@datenritter.de writes: > Maybe scrap the whole thing. Use backticks to feed the email to a Perl > script that safely parses headers. Okay... the beforementioned problems left aside, what is the advantage? You can safely implement the same functionality in Perl itself, instead of

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2017-03-30 Thread lists
Am 30.03.2017 um 02:46 schrieb Sam Varshavchik: >> ### BUG: This leaves LPART and DPART empty. :( ### >> LPART=`echo $MATCH1 | sed "s/\./_/g"` > > If someone were to send an email with a carefully crafted header that reads: > "X-BeenThere: ; rm -rf $HOME" you'll have a lot of

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2017-03-29 Thread Sam Varshavchik
li...@datenritter.de writes: Below is how I did it. Unfortunately the script stopped working a few months ago writing hundreds of mails to (mbox?-)files with useful names like ".@". My debug version with some extra logging needs more input, so I'll send it to this list... ["Yo dawg, I heard

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2017-03-29 Thread lists
Am 02.09.2016 um 11:01 schrieb Alessandro Vesely: >> If you would like to sort mails from this mailing list into defined >> folder, then use List-Id header as selection criterium: >> >> if (/^List-Id:.*courier-users.lists.sourceforge.net/) >> to "$HOME/Maildir/$FOLDER/" >> >> (use desired folder

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2016-09-02 Thread Alessandro Vesely
On Fri 02/Sep/2016 07:26:12 +0200 Milan Obuch wrote: > On Thu, 1 Sep 2016 20:57:50 -0400 David Niklas wrote: > >> I wanted to know if courier could read the subject/from metadata so >> that it could place courier mailing list mail into one folder and so >> on with other mail received. > >

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2016-09-02 Thread Milan Obuch
On Thu, 1 Sep 2016 20:57:50 -0400 David Niklas wrote: > Hello, > I wanted to know if courier could read the subject/from metadata so > that it could place courier mailing list mail into one folder and so > on with other mail received. > I'm talking about doing this after the part

Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap

2016-09-01 Thread Lindsay Haisley
On Thu, 2016-09-01 at 20:57 -0400, David Niklas wrote: > Hello, > I wanted to know if courier could read the subject/from metadata so that > it could place courier mailing list mail into one folder and so on with > other mail received. > I'm talking about doing this after the part where courier

[courier-users] Can courier sort mail for one user into multiple subfolders for imap

2016-09-01 Thread David Niklas
Hello, I wanted to know if courier could read the subject/from metadata so that it could place courier mailing list mail into one folder and so on with other mail received. I'm talking about doing this after the part where courier figures out that the email message it just received/retrieved is