Unfortunately my users like to use more then one email client.
Too much I was asked to translate addressbookses from one
format to another (eudora to pine to openwebmail to outlook...
There are some programs to do so but every time I found new
problem, aspacially in cases of groups and lists. I wrote
sed(1) and awk(1) to do the job. But enough is enough!
Here is the solution, where procmail is your friend (:-)
0. The user made text files with list of address.
1. when the user want to send a message to list he
sends the message to himself with passwd and filename
(ie group name) in the message.
2. Procmail checks, if the message sent from the user and
has the passwd then it will send the message to the list
from the filename.
------------------------------- 8><------------------------
ADDBOOK=Addressbook
OWNER=`formail -z -r -x"To: "`
PASSWD="tarasbulba"
:0 B
*$ OWNER ?? ^^$LOGNAME(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il^^
*$ ^$PASSWD \/.+
{
ADDBOOK=$ADDBOOK/$MATCH
:0 bfw
|grep -v "^$PASSWD"
:0
!`cut -f1 $ADDBOOK`
}
--------------------------------- 8><-------------------------
From now, the user can send message from any client and anywere.
Example: The message start with the line: "tarasbulba friends"
procmail will send the message to the list from the
file: Addressbook/friends
Note: Do cut(1) to allow the user to add commant to the
address, separated by TAB.
Bye,
Udi
____________________________________________________________
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