From: Paul R. <pa...@pa...> - 2002-04-03 11:33:09
|
On Wed, Apr 03, 2002 at 12:53:15PM +0200, Andreas Stehn wrote: > > Hello. > > Im having some difficulties setting archivemail up. ive created a simple > script based on the example script in the package. the script looks like > this > > <snip> > !/bin/sh > #set -x > set -e > ARCMAIL="$HOME/.procmail/archivemail --output-dir=$HOME/Maildir/.Mail- > Archive/" > > $ARCMAIL --days 3 $HOME/Maildir/.Lists.Debian.Debian-Users \ > </snip> > > and i get the following. > > <snip> > Traceback (most recent call last): > File "/home/diktatorn/.procmail/archivemail", line 832, in ? > main() > File "/home/diktatorn/.procmail/archivemail", line 521, in main > archive(mailbox_path) > File "/home/diktatorn/.procmail/archivemail", line 658, in archive > _archive_maildir(mailbox_name, final_archive_name) > File "/home/diktatorn/.procmail/archivemail", line 765, in > _archive_maildir > archive.write(msg) > File "/home/diktatorn/.procmail/archivemail", line 262, in write > unix_from = make_mbox_from(msg) > File "/home/diktatorn/.procmail/archivemail", line 567, in make_mbox_from > date = rfc822.parsedate(message.get('Delivery-date')) > File "/usr/lib/python2.1/rfc822.py", line 901, in parsedate > t = parsedate_tz(data) > File "/usr/lib/python2.1/rfc822.py", line 825, in parsedate_tz > data = data.split() > AttributeError: 'None' object has no attribute 'split' > </snip> > > Any help and input on this would be highly appreciated. Archive mail seems > to suit my needs prefectly and id love to get it up and running. The problem is that the message in question has no 'Delivery-Date' header, which it tries to use to re-construct the mbox-format 'From_' line. This is a bug on archivemail's behalf -- it should be more robust about missing headers. I've just released a new version of archivemail (version 0.2.0) which should fix the problem -- it uses the normal messsage 'Date' field if no 'Delivery-Date' field exists. It is available here: http://prdownloads.sourceforge.net/archivemail/archivemail-0.2.0.tar.gz Let me know how it goes.... -- paul at paulrodger dot com http://paulrodger.com/pgpkey.html 1024D/F0C363EF BC57 D4A4 AAB4 625F 61E8 D933 8F3D 04C5 F0C3 63EF |