procmail
[Top] [All Lists]

Re: maildir filename in recipe

2009-08-16 07:00:55
I do wish people would search the mail archive before asking questions.
It is often much quicker and can be much less embarrassing. ;-)  This
subject seems to come up every twelve months, or so.  Of course if
people used meaningful subjects for their questions it would make
searching the archive much easier. :-)

In message <20090816102214(_dot_)GA1027(_at_)tamay-dogan(_dot_)net>,
        Michelle Konzack (linux4michelle(_at_)tamay-dogan(_dot_)net) wrote:
[...]

:0
{ TRAP='mv "$LASTFOLDER" "$(echo "${LASTFOLDER}" |sed 's|/new/|/cur/|'):2,S"' 
}

Yuck. :-)

:0
TRAP='mv ${LASTFOLDER} ${LASTFOLDER%%new/*}cur/${LASTFOLDER##*/}:2,S'

For those interested in past discussions see:
http://www.xray.mpe.mpg.de/mailing-lists/procmail/2008-07/msg00001.html
http://www.xray.mpe.mpg.de/mailing-lists/procmail/2007-08/msg00023.html


Cheers,
       Nick.
-- 

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail