procmail
[Top] [All Lists]

Re: maildir filename in recipe

2009-08-16 15:38:54
In message <20090816191642(_dot_)GE1027(_at_)tamay-dogan(_dot_)net>,
        Michelle Konzack (linux4michelle(_at_)tamay-dogan(_dot_)net) wrote:
Am 2009-08-16 13:29:28, schrieb N.J. Mann:
In message <5CD450EC-126A-49FE-9226-7EA5DB3B0E7A(_at_)kreme(_dot_)com>,
    LuKreme (kremels(_at_)kreme(_dot_)com) wrote:
On 16-Aug-2009, at 05:00, N.J. Mann wrote:
:0
TRAP='mv ${LASTFOLDER} ${LASTFOLDER%%new/*}cur/${LASTFOLDER##*/}:2,S'


This will fail with any folder with a space in the name.

And so does Michelle's recipe, so mine is no worse that hers it that
respect.

I have tested my pecipe...  My VARS are quoted and yours not.

And I tested your recipe as well. :-)

However, if you add quotes to mine it works as well. :-)
e.g.

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

Now, I would like the bike shed pink please...


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