Mercurial > p > roundup > code
comparison roundup/roundupdb.py @ 1321:328d68db2ef8
- detect and break email loops [SF#640854]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Dec 2002 00:23:36 +0000 |
| parents | b2d04ce03802 |
| children | b1f86cc82d33 |
comparison
equal
deleted
inserted
replaced
| 1320:3758a5af985f | 1321:328d68db2ef8 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: roundupdb.py,v 1.73 2002-11-05 22:59:46 richard Exp $ | 18 # $Id: roundupdb.py,v 1.74 2002-12-10 00:23:36 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Extending hyperdb with types specific to issue-tracking. | 21 Extending hyperdb with types specific to issue-tracking. |
| 22 """ | 22 """ |
| 23 | 23 |
| 236 if inreplyto: | 236 if inreplyto: |
| 237 writer.addheader('In-Reply-To', inreplyto) | 237 writer.addheader('In-Reply-To', inreplyto) |
| 238 | 238 |
| 239 # add a uniquely Roundup header to help filtering | 239 # add a uniquely Roundup header to help filtering |
| 240 writer.addheader('X-Roundup-Name', self.db.config.TRACKER_NAME) | 240 writer.addheader('X-Roundup-Name', self.db.config.TRACKER_NAME) |
| 241 | |
| 242 # avoid email loops | |
| 243 writer.addheader('X-Roundup-Loop', 'hello') | |
| 241 | 244 |
| 242 # attach files | 245 # attach files |
| 243 if message_files: | 246 if message_files: |
| 244 part = writer.startmultipartbody('mixed') | 247 part = writer.startmultipartbody('mixed') |
| 245 part = writer.nextpart() | 248 part = writer.nextpart() |
