procmail
[Top] [All Lists]

running mailing lists off of procmail

1997-07-21 16:27:00
A couple of questions... someone helped me prepend "SpookInfo: " to all 
my mailing list stuff, however, there's a couple things I'd like to do.. 
here's the recipe:

The way it works is that my email is ssobel(_at_)uiuc(_dot_)edu, but I have a 
PH 
alias that is SpookInfo(_at_)uiuc(_dot_)edu 

:fc
* ^TOSpookInfo(_at_)uiuc(_dot_)edu
* !^X-Loop: SpookInfo(_at_)uiuc(_dot_)edu
* ^Subject:\/.*
| formail -I "X-Loop: SpookInfo(_at_)uiuc(_dot_)edu" \
          -I "Subject: SpookInfo: $MATCH"
  :Awi
  ! `cat $HOME/.spookinfo.list`

Now.. here's the problems I'm having and what I want to do:
First, if the subject already contains "SpookInfo:" I'd like to NOT 
prepend "SpookInfo:" to it...

Second, if someone mails the list with a blank subject header, it won't 
go through to the list (this hasn't happened yet, but I might as well 
compensate for it if it may happen in the future).

Lastly, I'd like to prohibit people who aren't contained in 
.spookinfo.list frmo emailing the list (this hasn't been a problem 
either, but again, I may as well stop it before it starts ;)

I'm highly confused by formail and sed's crazy syntax, so, any help would 
be greatly appreciated...

Steve
ssobel(_at_)uiuc(_dot_)edu

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