procmail
[Top] [All Lists]

Re: Replacing characters in $MATCH, and folders with periods

2004-04-09 08:53:30
Ruud H.G. van Tol wrote:

Or use snr, from the fabulous 'just procmail'-collection:
http://www.xs4all.nl/~rvtol/procmail/ snr_demo.rc

Thanks for the pointer, Ruud. But there shouldn't be a space after tha last slash, and it's also important to see http://www.xs4all.nl/~rvtol/procmail/inc/snr_fast.inc with it.

  :0
  * FOLDERNAME ?? ()\.
  {
    snr_String  = $FOLDERNAME
    snr_Search  = "."
    snr_Replace = ":"
    INCLUDERC = inc/snr_fast.inc
    :0
    .$snr_Return
  }
  :0E
  .$FOLDERNAME

Unless $FOLDERNAME already includes the trailing slash to get maildir format as Courier IMAP likes, those destinations will need to be .$snr_Return/ and .$FOLDERNAME/ respectively.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>