summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3a5179)
raw | patch | inline | side by side (parent: c3a5179)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Apr 2003 12:10:51 +0000 (12:10 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Apr 2003 12:10:51 +0000 (12:10 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1674 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 7cb8e42901dd5c6de6358a51e9f9fcb53d8310c4..d5e1ea71991da673fd88622c1e859a78288ab553 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- only look for CSV files when importing (thanks Dan Grassi)
- can now unset values in CSV editing (sf bug 704788)
- fixed rdbms email address lookup (case insensitivity)
+- email file attachments added to issue files list (sf bug 711501)
2003-02-27 0.5.6
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 66102ebee56a4ffbaed38b8f50e99b20a0857d19..75dd779948e3737eae1c6aed7f357582030ceaa9 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.116 2003-04-17 06:51:44 richard Exp $
+$Id: mailgw.py,v 1.117 2003-04-23 12:09:20 richard Exp $
'''
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
name = "unnamed"
files.append(self.db.file.create(type=mime_type, name=name,
content=data, **file_props))
+ # attach the files to the issue
+ if nodeid:
+ # extend the existing files list
+ fileprop = cl.get(nodeid, 'file')
+ fileprop.extend(files)
+ props['files'] = fileprop
+ else:
+ # pre-load the files list
+ props['files'] = fileprop
+
#
# create the message if there's a message body (content)