On Thu, Jul 21, 2005 at 08:42:23AM -0700, Gene wrote:
> I was scratching my head for a long time until I debugged it and found
> out that it was the pattern that was the issue.
> I'm using Courier-IMAP 3.0.x (whatever apt-get installed [Debian 3.1
Yes, if you're using a non-SSL imap, the stock pattern doesn't work.
Adding "|login" to the "d|d-ssl" choices will make it work. (Or,
switching over to using SSL will make your connections more secure
without needing the fix since it logs as "imapd-ssl".)
> I dunno if the pop3 one will work but I included it in the pattern.
It won't work for non-SSL pop3 without the (?:courier)? prefix, as they
seem to log that as "courierpop3login" these days (secure pop3 logs as
> And I don't know if the out_pat will work either.
The same fix will work with that pattern (adding "|login").
> PS: apparently, the code doesn't seem to be thunderbird friendly. It
> would remove the IP from the DB and it won't update it even if I do "get
That was fixed in 1.37 if an $out_pat is defined. If you're using
Debian Sarge, you've only got 1.36, so I'd suggest upgrading your script
to 1.38 (with the locking bug fix for 1.37) so that it works well with
Thunderbird's cached IMAP connections. You need to be careful to keep
Debian's customizations when upgrading, though. I'll attach a patch
that can be applied to a stock 1.38's pop-before-smtp script to turn it
into the Debian vesion.