Quantcast

[issue2550936] email gateway discards changes to messages and files if there is a message body

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[issue2550936] email gateway discards changes to messages and files if there is a message body

John Rouillard

New submission from John Rouillard:

When updating an issue via email with the following tag at the end:

   [messages=+25;files=+10]

the change only took effect if there was no message created or file
added. Otherwise setting messages/files on the subject line is
ignored.

The key is not to trigger/run this code (from create_msg, but similar
in create_file):
 
             if self.nodeid:
                 # add the message to the node's list
                 messages = self.cl.get(self.nodeid, 'messages') # **
                 messages.append(message_id)
                 self.props['messages'] = messages
 
It looks like this code gets the message list from the database and
discards the pending changes. So the modified version of the message
field, created by parsing the subject properties, is discarded.

----------
assignee: rouilj
components: Mail interface
messages: 5942
nosy: rouilj
priority: normal
severity: normal
status: new
title: email gateway discards changes to messages and files if there is a message body
type: behavior
versions: devel

________________________________________________
Roundup tracker <[hidden email]>
<http://issues.roundup-tracker.org/issue2550936>
________________________________________________

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Roundup-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/roundup-devel
Loading...