procmail
[Top] [All Lists]

Re: Action: Set Environment Variable

2004-04-21 06:25:22
When Jack asked,

I guess this makes sense ... But what I need is to set the "MAILBOX"
environment variable based on a condition.

Dallman suggested, after fixing Jack's other errors,

   :0:
   * ^From:.*(BBC News|News Front Page|UK Edition)
   bbc-news

As I read Jack's post, what he wants is probably more like this (which should *not* have a lockfile):

    :0
    * ^From:.*(BBC News|News Front Page|UK Edition)
    { MAILBOX=bbc-news }

Another possibility is that the space-pipe-space strings in his condition are supposed to be literal, and the condition should be,

    * ^From:.*BBC News \| News Front Page \| UK Edition


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