On 12/07/2016 01:12 AM, Bernd Plagge wrote:
> However, I always got a message saying that the message was not found....
> So, I wrote a small program to list the keys in the database:
>
> /var/lib/pythonfilter/quarantine# ./dbmtest.pl msgs.db
> 203720L

Seems you've hit a bug in pythonfilter.  I haven't seen inodes 
represented that way on any of the systems I've used.  What platform and 
what release of python are you using?

I think you can work around this by patching quarantine.py:

diff -r 20cc13ea1a4b courier/quarantine.py
--- a/courier/quarantine.py    Fri Nov 25 16:38:07 2016 -0800
+++ b/courier/quarantine.py    Wed Dec 07 18:59:32 2016 -0800
@@ -187,6 +187,8 @@
      (dbm, lock) = _getDb()
      if requestedId in dbm:
          quarantinePaths = pickle.loads(dbm[requestedId])[1]
+    elif requestedId + 'L' in dbm:
+        quarantinePaths = pickle.loads(dbm[requestedId + 'L'])[1]
      else:
          quarantinePaths = None
      # Unlock the DB

> As the program reads the 'r' headers it will never match the 'R' header ....
> Or am I wrong??

getControlData()['r'] isn't just the "r" lines.  It's a list of lists, 
each of which contains the rewritten recipient address, the original 
recipient address, and zero or more characters indicating DSN behavior.


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to