On Thu, 08 Dec 2016 03:04:39 +0000 courier-users-requ...@lists.sourceforge.net wrote:
> From: Gordon Messmer <gordon.mess...@gmail.com> > To: courier-users@lists.sourceforge.net > Subject: Re: [courier-users] Release quarantine messages - pythonfilter > Date: Wed, 7 Dec 2016 19:04:26 -0800 > Content-Transfer-Encoding: 7bit > > 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. > Hi Gordon, thanks for the quick answer. I'm using Debian (Jessie) and Python 2.7. Just applied your patch; hopefully this works. Thanks a lot, Bernard -- Bernd Plagge - プラゲ ベェアント First Choice Internet Ltd., Tokyo - ファースト・チョイス・インターネット(有) mail: bpla...@choicenet.ne.jp - url: http://www.choicenet.ne.jp Tel: 03-6379 2516 - Fax: 03-6379-2686 VoIP: sip:bpla...@bluesip.net ************************************************************** FREE Web Assessment: http://choicenet.ne.jp/en/website_assessment.html Web Sites: http://choicenet.ne.jp/en/websites.html Web Design: http://choicenet.ne.jp/en/webdesign.html Web Hosting: http://choicenet.ne.jp/en/hosting.html Net Support: http://choicenet.ne.jp/en/netsupport.html ******************* 無料ウエブサイト評価 http://choicenet.ne.jp/jp/website_assessment.html ウエブサイト: http://choicenet.ne.jp/jp/websites.html ウエブデザイン: http://choicenet.ne.jp/jp/webdesign.html ウエブホスティング: http://choicenet.ne.jp/jp/hosting.html ネットワークサポート: http://choicenet.ne.jp/jp/netsupport.html
pgpJD5YYJAMJ8.pgp
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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