A client liked so much the little vacation recipe I installed for him
that all his co-workers want to be able to edit, activate, disable their
own vacation reply. That is without ever thouching a procmail recipe of
course.
Here is what my sick mind came up with:
- use the global /etc/procmailrc
- extract the user part of the recipient in (to|cc):
- check for an account on the server
- check for a VACATION.TXT file in user's $HOME, thanks to Samba's
[homes] section the user will be able to edit that file from his
notepad/windows rig
- check if that file's modification time is newer than the user's
msgid.cache file
- if TRUE then it means the user has a new VACATION.TXT message to
broadcast to the world, and we should cancel the cache, so remove
the msgid.cache file
- send the vacation reply
- if the user has no VACATION.TXT file in his/her $HOME (or has renamed
it to OFF_VACATION.TXT for instance) do nothing,
- deliver as usual
Before starting to implement that, I just wanted to bounce it off
procmail experts for any catch, or previous art.
TIA
PS: as an added benefit this thing could wean these ppl off Netware
(which another consultant is maintaining, grrr..) and make them discover
the joys of Samba
--
PHEDRE: Je le vois comme un monstre effroyable à mes yeux.
OENONE: Pourquoi donc lui céder une victoire entière ?
(Phèdre, J-B Racine, acte 3, scène 3)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail