procmail
[Top] [All Lists]

Re: need help with variable testing

1998-04-23 11:05:34
Timothy Luoma asked,

| I'd like to ... pick INCLUDERCs based on whether TOME is
| set to 'yes' or 'no'
| 
| Would that be:
| 
| :0
| * $ $TOME=yes
| { INCLUDERC=To_me.rc }
| 
| :0E
| * $ $TOME=no
| { INCLUDERC=Not_to_me.rc }
| 
| ?  Am I even close?

"Close" is such a subjective term.

  :0
  * TOME ?? ^^yes^^
  { INCLUDERC=To_me.rc }
  :0E
  * TOME ?? ^^no^^
  { INCLUDERC=Not_to_me.rc }
 
With only a basename, procmail will assume that the INCLUDERC files are 
in $MAILDIR, so if they are in any other directory, give a full absolute
path or a relative path from $MAILDIR.

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