procmail
[Top] [All Lists]

Re: Basename()

2006-12-04 08:42:59
Ruud H.G. van Tol schreef:

This code returns the Basename of the current rc-file in $MATCH:

  NL = '
'
  SETMATCH = '$ _1 ?? ()${_2}'

  _1 = $_
  _2 = '\/[^/]+'

I meant:

    _2 = '\/[^/]+^^'


  :0  #  get Basename
  *$ $SETMATCH
  { LOG = $MATCH$NL }

-- 
Groet, Ruud

____________________________________________________________
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

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