summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7305f1f)
raw | patch | inline | side by side (parent: 7305f1f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 24 Mar 2003 02:51:22 +0000 (02:51 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 24 Mar 2003 02:51:22 +0000 (02:51 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1619 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history | |
roundup/scripts/roundup_mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 18d7616cc4f73a8aa636db1bcaaa6a7e4059a994..f811fcb47f111c44fc82b3f10e85bbdf4e672ccb 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- role names made case insensitive
- added ability to restore retired nodes
- more lenient date input and addition Interval input support (sf bug 677764)
+- roundup mailgw now handles apop
Fixed:
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 53dc0417fbd433ffececfa1765b58f530c28ab07..c7a8b68f75913961e1619c1391b437b4faa38492 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.111 2003-02-27 05:43:01 richard Exp $
+$Id: mailgw.py,v 1.112 2003-03-24 02:51:21 richard Exp $
'''
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
fcntl.flock(f.fileno(), FCNTL.LOCK_UN)
return 0
- def do_pop(self, server, user='', password=''):
+ def do_apop(self, server, user='', password=''):
+ ''' Do authentication POP
+ '''
+ self.do_pop(server, user, password, apop=1):
+
+ def do_pop(self, server, user='', password='', apop=0):
'''Read a series of messages from the specified POP server.
'''
import getpass, poplib, socket
except socket.error, message:
print "POP server error:", message
return 1
- server.user(user)
- server.pass_(password)
+ if apop:
+ server.apop(user, password)
+ else:
+ server.user(user)
+ server.pass_(password)
numMessages = len(server.list()[1])
for i in range(1, numMessages+1):
# retr: returns
index 6849a6fc9476dff0938d1945a7b935b07f2a38ad..7d34607a56e47bdf9b2c906ac70dbe6f88aed9b8 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup_mailgw.py,v 1.7 2003-01-12 00:03:11 richard Exp $
+# $Id: roundup_mailgw.py,v 1.8 2003-03-24 02:51:22 richard Exp $
# python version check
from roundup import version_check
pop server
are both valid. The username and/or password will be prompted for if
not supplied on the command-line.
+
+APOP:
+ Same as POP, but using Authenticated POP
+
''')
return 1