[dev] procmail and folders beginning with |

Jan Schneider jan at horde.org
Wed Oct 11 04:25:37 PDT 2006


Zitat von Michael Menge <michael.menge at zdv.uni-tuebingen.de>:

> Hi,
>
> the user used the following name for his folder.
>
> |formail    -rA     "X-Loop:hisemailaddres at excample.com"   |       (  
>       cat     -       ;myCmd="$MATCH";  echo    "Executing:      
> $myCmd" ;       bash    -c      "$myCmd"        )       |$SENDMAIL    
>      -oi     -t
>
>
> and the procmailrc looked like
>
> * ^From:.*hisemailaddres at excample\.com
> {
>   :0
>   * ^Subject:.*exec_command\/.*$
>   |formail    -rA     "X-Loop:hisemailaddres at 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?

Oh, and this should go into http://bugs.horde.org/.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list