[prev in list] [next in list] [prev in thread] [next in thread] 

List:       horde-dev
Subject:    Re: [dev] procmail and folders beginning with |
From:       Benoit Branciard <Benoit.Branciard () univ-paris1 ! fr>
Date:       2006-10-11 12:00:42
Message-ID: 452CDCEA.3000104 () univ-paris1 ! fr
[Download RAW message or body]

Jan Schneider a écrit :
> Zitat von Michael Menge <michael.menge@zdv.uni-tuebingen.de>:
> 
>> Hi,
>>
>> the user used the following name for his folder.
>>
>> |formail    -rA     "X-Loop:hisemailaddres@excample.com"   |       ( 
>>       cat     -       ;myCmd="$MATCH";  echo    "Executing:     
>> $myCmd" ;       bash    -c      "$myCmd"        )       |$SENDMAIL   
>>      -oi     -t
> 
> Clever guy. Anyway, prohibiting valid IMAP folder names is not an 
> option, instead we probably need to properly escape special chars in 
> folder names. Any ideas for sane list of characters that need to be 
> escaped?
> 

This escaping is to be done in Ingo's "procmail" script driver, not in 
general IMAP folder processing.

Escaping should be made considering the procmailrc syntax and rules 
(i.e. the folder name sould not be confused with a condition, block 
nesting, forwarding, command pipe or comment). This may include escaping 
the first character against #, :, *, {, |, !, }. Whether or not 
subsequent characters should be escaped is to be investigated.


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.


-- 
Horde developers mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic