summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd0ba9a)
raw | patch | inline | side by side (parent: fd0ba9a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Jun 2003 23:31:52 +0000 (23:31 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Jun 2003 23:31:52 +0000 (23:31 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1732 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index ca9ed5a41aafd5db8af55116dbb737369ef9933e..e942fe81eafe7b0d6bfd8315bd53bd137b1e619c 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.121 2003-04-27 02:16:46 richard Exp $
+$Id: mailgw.py,v 1.122 2003-06-18 23:31:52 richard Exp $
'''
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
pass each to the mail handler.
'''
# open the spool file and lock it
- import fcntl, FCNTL
+ import fcntl
+ # FCNTL is deprecated in py2.3 and fcntl takes over all the symbols
+ if hasattr(fcntl, 'LOCK_EX'):
+ FCNTL = fcntl
+ else:
+ import FCNTL
f = open(filename, 'r+')
fcntl.flock(f.fileno(), FCNTL.LOCK_EX)