Proposal for Example Section in the docs: Complex example of Cust omer Postmaster Module

I have attached a Custom Postmaster module that implements ignoring messages and sending an email to the sender letting them know that the message was ignored and why. This might be a good thing to put in the doc examples as questions of this type have been asked before. I know there are procmail/spamassasin solutions to this kind of issue, but I don't have the luxury of either of those items. I have to work with our companies exchange server and thought this might be useful to those in a similar situation. Robert, Would you mind browsing the code and tell me if you think it looks efficient enough or whether I should change it. Regards, Tyler Hepworth

On Friday, May 28, 2004 10:12 PM
Tyler Hepworth
I have attached a Custom Postmaster module that implements ignoring messages and sending an email to the sender letting them know that the message was ignored and why. This might be a good thing to put in the doc examples as questions of this type have been asked before. I know there are procmail/spamassasin solutions to this kind of issue, but I don't have the luxury of either of those items. I have to work with our companies exchange server and thought this might be useful to those in a similar situation.
The easier solution were to set up some sort of reject queues with specific auto responses set and use a simple PostMasterFilter to feed them. But don't let me lower your solution - it may well serve best its purpose and will surely suit you as a starting point for more advanced examples. Both solutions have theier dis/advantages, it's up to the user at last. One could argue about putting the Bodies into variables that are set via Config.pm, though.
Robert,
Would you mind browsing the code and tell me if you think it looks efficient enough or whether I should change it.
My 0.02: +You do not leave any infomation why the reject note wasn't sent, if it weren't. +Additionally, you do not log the error as such to the LogObject, don't you want to? Just nothing: +Debug support would be nice, but isn't necessary. +Try to stick to 80 chars in comments and general, if possible. Multiple comment lines are ok. Good work! I will integrate it in the docs. Tell me when it's ripe. You're on track. Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
Robert Kehl
-
Tyler Hepworth