summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 649e3a2)
raw | patch | inline | side by side (parent: 649e3a2)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 11 Oct 2001 06:38:57 +0000 (06:38 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 11 Oct 2001 06:38:57 +0000 (06:38 +0000) |
create an issue.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@296 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@296 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/announcement.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/doc/announcement.txt b/doc/announcement.txt
index 227b7fcac612bb6fde964e603da2062f202facc0..9efe6422123f126f5ee7d57b69b13e35b4d0cf87 100644 (file)
--- a/doc/announcement.txt
+++ b/doc/announcement.txt
Source and documentation is available at the website:
http://roundup.sourceforge.net/
+Release Info (via download page):
+ https://sourceforge.net/project/showfiles.php?group_id=31577
+
+Mailing lists - the place to ask questions:
+ https://sourceforge.net/mail/?group_id=31577
+
+
About Roundup
=============
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index fd66143d850ac125d34e7b684357b9bfd020987e..74c30ab12d16d81d2e459328b5d86ba603bb03cb 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.17 2001-10-09 07:25:59 richard Exp $
+$Id: mailgw.py,v 1.18 2001-10-11 06:38:57 richard Exp $
'''
s.seek(0)
return Message(s)
-subject_re = re.compile(r'(\[?(fwd|re):\s*)*'
- r'(\[(?P<classname>[^\d]+)(?P<nodeid>\d+)?\])'
- r'(?P<title>[^\[]+)(\[(?P<args>.+?)\])?', re.I)
+subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re)\s*\W?\s*)*'
+ r'\s*(\[(?P<classname>[^\d]+)(?P<nodeid>\d+)?\])'
+ r'\s*(?P<title>[^\[]+)(\[(?P<args>.+?)\])?', re.I)
class MailGW:
def __init__(self, db):
sendto = [message.getaddrlist('from')[0][1]]
m = ['Subject: Failed issue tracker submission', '']
m.append(str(value))
- m.append('\nMail Gateway Help\n=================')
+ m.append('\n\nMail Gateway Help\n=================')
m.append(fulldoc)
except:
# bounce the message back to the sender with the error message
Valid class names are: %s
Subject was: "%s"
'''%(classname, ', '.join(self.db.getclasses()), subject)
+
+ # If there's no nodeid, check to see if this is a followup and
+ # maybe someone's responded to the initial mail that created an
+ # entry. Try to find the matching nodes with the same title, and
+ # use the _last_ one matched (since that'll _usually_ be the most
+ # recent...)
+ if not nodeid and m.group('refwd'):
+ l = cl.stringFind(title=title)
+ if l:
+ nodeid = l[-1]
+
+ # start of the props
properties = cl.getprops()
props = {}
+
+ # handle the args
args = m.group('args')
if args:
- for prop in string.split(m.group('args'), ';'):
- try:
+ for prop in string.split(args, ';'):
+ Try:
key, value = prop.split('=')
except ValueError, message:
raise MailUsageError, '''
if content is None:
raise MailUsageError, '''
Roundup requires the submission to be plain text. The message parser could
-not find a text/plain part o use.
+not find a text/plain part to use.
'''
elif content_type[:10] == 'multipart/':
if content is None:
raise MailUsageError, '''
Roundup requires the submission to be plain text. The message parser could
-not find a text/plain part o use.
+not find a text/plain part to use.
'''
elif content_type != 'text/plain':
raise MailUsageError, '''
Roundup requires the submission to be plain text. The message parser could
-not find a text/plain part o use.
+not find a text/plain part to use.
'''
else:
#
# $Log: not supported by cvs2svn $
+# Revision 1.17 2001/10/09 07:25:59 richard
+# Added the Password property type. See "pydoc roundup.password" for
+# implementation details. Have updated some of the documentation too.
+#
# Revision 1.16 2001/10/05 02:23:24 richard
# . roundup-admin create now prompts for property info if none is supplied
# on the command-line.