procmail
[Top] [All Lists]

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

2004-04-09 08:42:26
Toen wij David W. Tamkin kietelden, kwam er dit uit:

2. Change the periods to some other character before you use them in
foldernames.

For example,

  :0
  * FOLDERNAME ?? ()\.
  .`echo "$FOLDERNAME | tr . :`/
  :0E
  .$FOLDERNAME/

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

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

-- 
Grtz, Ruud

_______________________________________________
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>