Re: How to drop an email and have global history

[email protected]
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
Matt Sergeant - [email protected] wrote:
> On Thu, 28 Oct 2010, [email protected] wrote:
>
>> 1) Have some sort of data structure accessible to all qpsmtpd 
>> children that remembers if a particular error has already been 
>> received in the past N minutes.
>> I'm guessing memcached would be useful here or a sqlite db?
>
> Yes or some sort of db file like BDB, though lots of people seem to 
> have reliability problems with those (myself included).
>
Ah ok.

> Any chance the Message-Id is the same for all these emails?
>
No, they're all different.
>> 2) How to quietly drop an email. ie just forget I received it. I 
>> don't want to send an error back to the originator, nor do I wish to 
>> deliver it to the intended recipient.
>
> You need a queue plugin (or hook) which pretends to deliver and 
> returns OK, but basically does nothing.
>
I currently have a plugin that has a hook_data_post. I presume I can put 
a hook_queue in the same plugin. Is there some sort of notes mechanism 
for communicating between hooks, like AxKit2?

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.