ports/64354: ports/archivemail: Fix syntax warning with Python 2.3
Simon Barner
barner at in.tum.de
Wed Mar 17 01:00:41 UTC 2004
>Number: 64354
>Category: ports
>Synopsis: ports/archivemail: Fix syntax warning with Python 2.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 16 17:00:40 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Simon Barner
>Release: FreeBSD 4.9 i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Feb 10 01:57:14 CET 2004 simon at zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386
>Description:
This fixes the following warning when you run archivemail with Python
2.3:
/usr/local/bin/archivemail:760: SyntaxWarning: assignment to None
(None, last_dir) = os.path.split(os.path.dirname(message.fp.name))
The patch was also submitted to upstream (using SF's bug tracking
system).
>How-To-Repeat:
Run archivemail with Python 2.3 as a cron job, and get annoying emails
:(
>Fix:
--- patch-archivemail begins here ---
--- archivemail.orig Wed Mar 17 01:31:23 2004
+++ archivemail Wed Mar 17 01:46:48 2004
@@ -757,7 +757,7 @@
# files in the maildir 'cur' directory are no longer new,
# they are the same as messages with 'Status: O' headers in mbox
- (None, last_dir) = os.path.split(os.path.dirname(message.fp.name))
+ (foo, last_dir) = os.path.split(os.path.dirname(message.fp.name))
if last_dir == "cur":
status = status + "O"
--- patch-archivemail ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list