Thanks for catching my silly errors - and for your help. However, I am
still struggling with what you suggest: It isn't setting the MAILBOX
variable?
---
:0
* ^From:.*BBC News \| News Front Page \| UK Edition
{
MAILBOX=bbc-news
}
:0 w
| /usr/sbin/cyrdeliver $LOGNAME -m $MAILBOX
EXITCODE=$?
---
Using some other action, I can confirm that this condition is met. Back
to this action, however, when MAILBOX is later used, it hasn't been
set:
---
/usr/sbin/cyrdeliver: option requires an argument -- m
421-4.3.0 usage: deliver [-C <alt_config> ] [-m mailbox] [-a auth] [-r
return_path] [-l] [-D]
421 4.3.0 v2.1.16-IPv6-Debian-2.1.16-6
procmail: Program failure (75) of "/usr/sbin/cyrdeliver"
---
Thanks again for any help,
Jack
On Apr 21, 2004, at 6:05 AM, David W. Tamkin wrote:
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
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail