[Python-checkins] CVS: python/dist/src/Lib mailbox.py,1.22,1.23
Fred L. Drake
python-dev@python.org
Thu, 14 Sep 2000 07:44:45 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30613
Modified Files:
mailbox.py
Log Message:
Detlef Lannert <lannert@uni-duesseldorf.de>:
mailbox.py (from the CVS tree) doesn't work with qmail Maildirs:
Filenames are completed when the directories are scanned, and
the directory name is prepended again in the next() method.
Another suggestion: Change the print statement in the _test()
driver to show two more date characters (probably the length
has increased due to the recent Y2K hype ;). Now it shows the
complete date, including the seconds -- at least for me. (I've
also made the sender field left justified, in case it is ever
shorter than the field width).
Index: mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mailbox.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** mailbox.py 2000/08/11 07:48:36 1.22
--- mailbox.py 2000/09/14 14:44:43 1.23
***************
*** 202,206 ****
fn = self.boxes[0]
del self.boxes[0]
! fp = open(os.path.join(self.dirname, fn))
return rfc822.Message(fp)
--- 202,206 ----
fn = self.boxes[0]
del self.boxes[0]
! fp = open(fn)
return rfc822.Message(fp)
***************
*** 276,280 ****
s = msg.getheader('subject') or ""
d = msg.getheader('date') or ""
! print '%20.20s %18.18s %-30.30s'%(f, d[5:], s)
--- 276,280 ----
s = msg.getheader('subject') or ""
d = msg.getheader('date') or ""
! print '-%20.20s %20.20 %-30.30s'%(f, d[5:], s)