? configurable_subject.patch Index: roundup/roundupdb.py =================================================================== RCS file: /cvsroot/roundup/roundup/roundup/roundupdb.py,v retrieving revision 1.139 diff -c -r1.139 roundupdb.py *** roundup/roundupdb.py 7 Aug 2008 06:31:16 -0000 1.139 --- roundup/roundupdb.py 13 Sep 2008 19:16:08 -0000 *************** *** 166,172 **** """ def nosymessage(self, nodeid, msgid, oldvalues, whichnosy='nosy', ! from_address=None, cc=[], bcc=[]): """Send a message to the members of an issue's nosy list. The message is sent only to users on the nosy list who are not --- 166,172 ---- """ def nosymessage(self, nodeid, msgid, oldvalues, whichnosy='nosy', ! from_address=None, cc=[], bcc=[], subject=''): """Send a message to the members of an issue's nosy list. The message is sent only to users on the nosy list who are not *************** *** 185,190 **** --- 185,193 ---- message to that may not be specified in the message's recipients list. These recipients will not be included in the To: or Cc: address lists. + + The "subject" argument is used as subject for the message. If no + subject is passed, a subject will be generated from the message. """ if msgid: authid = self.db.msg.get(msgid, 'author') *************** *** 245,257 **** if msgid is not None: self.db.msg.set(msgid, recipients=recipients) self.send_message(nodeid, msgid, note, sendto, from_address, ! bcc_sendto) # backwards compatibility - don't remove sendmessage = nosymessage def send_message(self, nodeid, msgid, note, sendto, from_address=None, ! bcc_sendto=[]): '''Actually send the nominated message from this node to the sendto recipients, with the note appended. ''' --- 248,260 ---- if msgid is not None: self.db.msg.set(msgid, recipients=recipients) self.send_message(nodeid, msgid, note, sendto, from_address, ! bcc_sendto, subject) # backwards compatibility - don't remove sendmessage = nosymessage def send_message(self, nodeid, msgid, note, sendto, from_address=None, ! bcc_sendto=[], subject=''): '''Actually send the nominated message from this node to the sendto recipients, with the note appended. ''' *************** *** 364,370 **** if from_tag: from_tag = ' ' + from_tag ! subject = '[%s%s] %s'%(cn, nodeid, title) author = (authname + from_tag, from_address) # send an individual message per recipient? --- 367,374 ---- if from_tag: from_tag = ' ' + from_tag ! if not subject: ! subject = '[%s%s] %s'%(cn, nodeid, title) author = (authname + from_tag, from_address) # send an individual message per recipient?