The patch itself looks fine, I'm not sure whether we actually should support this or not.
(It also needs an update to README.plugins, and maybe should be called data_headers_end, but those are little things.) Anyone else want to chime in? Karl Y. Pradene wrote: > > On Sat, 7 Feb 2009 23:24:39 -0800 Ask Bjørn Hansen <a...@develooper.com> > wrote: > > > > > On Feb 7, 2009, at 6:25, Karl Y. Pradene wrote: > > > > > Hi, > > > is it possible add a hook at the end of headers? > > > > Hi Karl, > > > > Look in data_respond in lib/Qpsmtpd/SMTP.pm -- it would be pretty > > easy to add. Look for the line that says "$in_header = 0;" > > > > I'm not sure it'd be useful though, because the only way you can > > avoid receiving the data anyway at that point would be just dropping > > the connection -- and well behaved mailers will just try and try > > again after that. > > > > Of course if it's spam or a virus it's unlikely to reconnect more or > > less because you drop the connection, so I guess that it could be > > worthwhile... > > > > > > - ask > > > > Here the two patches I made. > > -- > Karl Y. Pradene