Re: [Exim] filtering by email address

Top Page
Delete this message
Reply to this message
Author: Steve Haslam
Date:  
To: exim-users
Subject: Re: [Exim] filtering by email address
On Tue, Jan 11, 2000 at 08:52:04AM +0000, Philip Hazel wrote:
> On Mon, 10 Jan 2000, Steve Haslam wrote:
>
> > I think you could do this part by having a system-wide message filter
> > that does an "unseen pipe /some/prog $sender_address", where
> > /some/prog notes down that the named sender has mailed the recipients
> > in the message headers... all it has to do is open the (say) dbm at
> > (say) /var/state/exim/frienddb/$sender_address, and write records for
> > each recipient.
>
> No quite all. Consider two messages being sent at once. You have to
> think about locking.


OK- but this isn't hard to do; either stick with a dbm and use
"*.dbm.lock" as a lock file (using something like liblockfile) or use
a system that has transactional locking anyway, such as SQL.

Hmmm.. maybe I ought to write a PostgreSQL lookup type to go with the
MySQL lookup...

SRH
-- 
Steve Haslam, Production Engineer, Excite UK     steve.haslam@???
                               i sit and stare at the gun pointed at my head
                                       and think about all the possibilities