[Mimedefang] Greylist DB addition fails silently?
David F. Skoll
dfs at roaringpenguin.com
Wed Jun 23 13:15:42 EDT 2004
On Wed, 23 Jun 2004, Paul Murphy wrote:
> Presumably if making the DBI connection and all of the SQL prepare
> statements are done in filter_initialize, and the database is closed
> in filter_cleanup, then it should all work OK using DBI execute
> statements in the main filter code?
Yes. I usually use wrapper functions that lazily create the connection.
The first time the connection is needed, it's created and stored in
a global variable. The next time, we just use the already-existing
connection from the global variable.
Regards,
David.
More information about the MIMEDefang
mailing list