Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2004 01:57:35 +0100 (CET)
From:      Simon Barner <barner@in.tum.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sergei@FreeBSD.org
Subject:   ports/64354: ports/archivemail: Fix syntax warning with Python 2.3
Message-ID:  <20040317005735.D5D8D3F22@zi025.glhnet.mhn.de>
Resent-Message-ID: <200403170100.i2H10fsp091429@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040317005735.D5D8D3F22>