summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1c4c29)
raw | patch | inline | side by side (parent: c1c4c29)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 15 Nov 2001 10:24:27 +0000 (10:24 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 15 Nov 2001 10:24:27 +0000 (10:24 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@402 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi_client.py | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 413f268a8dac41cd8aa23bad96730cd338b02f08..928c7e990285249e0af73d5aeeb5df3f8277392b 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. bug #479511 ] mailgw to pop
. bug #479508 ] roundup-admin crash on wrong class
. bad error report in hyperdb
+ . roundup.mailgw now handles errors on the set() and create() at the end
+ of processing
+ . roundup.mailgw also handles messages that are passed to it that don't
+ contain a From: line - apparently some POP servers can do this. It punts
+ an error message to the roundup admin.
. fixed nosy reaction and author copy handling
. errors in nosy reaction will be propogated now (were effectively being
squashed)
. re-open the database as the author in mail handling
+
2001-10-23 - 0.3.0 pre 3
Feature:
. MailGW now moves 'unread' to 'chatting' on receiving e-mail for an issue.
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index e05aa1a8468dc08215f48c7682ff85b45ec2bbaa..24ff6314bbcc97ed77f0cf58684facba484a5604 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.56 2001-11-14 21:35:21 richard Exp $
+# $Id: cgi_client.py,v 1.57 2001-11-15 10:24:27 richard Exp $
import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
import binascii, Cookie, time
files = []
if self.form.has_key('__file'):
file = self.form['__file']
- type = mimetypes.guess_type(file.filename)[0]
- if not type:
- type = "application/octet-stream"
- # create the new file entry
- files.append(self.db.file.create(type=type, name=file.filename,
- content=file.file.read()))
+ if file.filename:
+ type = mimetypes.guess_type(file.filename)[0]
+ if not type:
+ type = "application/octet-stream"
+ # create the new file entry
+ files.append(self.db.file.create(type=type, name=file.filename,
+ content=file.file.read()))
# generate an edit message
# don't bother if there's no messages or nosy list
#
# $Log: not supported by cvs2svn $
+# Revision 1.56 2001/11/14 21:35:21 richard
+# . users may attach files to issues (and support in ext) through the web now
+#
# Revision 1.55 2001/11/07 02:34:06 jhermann
# Handling of damaged login cookies
#
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index fa144f62b7dd71774ee54ad292ed8fbfbdd41af9..e0b3ce5540d20eaeec5714e259f4a48a15cf261e 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.33 2001-11-13 21:44:44 richard Exp $
+$Id: mailgw.py,v 1.34 2001-11-15 10:24:27 richard Exp $
'''
def handle_Message(self, message):
'''Handle an RFC822 Message
- Hanle the Message object by calling handle_message() and then cope
+ Handle the Message object by calling handle_message() and then cope
with any errors raised by handle_message.
This method's job is to make that call and handle any
errors in a sane manner. It should be replaced if you wish to
#
# $Log: not supported by cvs2svn $
+# Revision 1.33 2001/11/13 21:44:44 richard
+# . re-open the database as the author in mail handling
+#
# Revision 1.32 2001/11/12 22:04:29 richard
# oops, left debug in there
#