Skip to content

Commit 57b71bd

Browse files
author
Richard Jones
committed
Send a Precedence header in email so autoresponders don't
1 parent 61b61df commit 57b71bd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4-
2008-03-01 1.4.5
4+
2008-??-?? 1.4.5
55
Fixed:
66
- 'Make a Copy' failed with more than one person in nosy list (sf #1906147)
77
- xml-rpc security checks and tests across all backends (sf #1907211)
8+
- Send a Precedence header in email so autoresponders don't
89

910

1011
2008-03-01 1.4.4

roundup/mailer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Sending Roundup-specific mail over SMTP.
22
"""
33
__docformat__ = 'restructuredtext'
4-
# $Id: mailer.py,v 1.21 2007-11-14 05:53:20 jpend Exp $
4+
# $Id: mailer.py,v 1.22 2008-07-21 01:44:58 richard Exp $
55

66
import time, quopri, os, socket, smtplib, re, sys, traceback
77

@@ -73,6 +73,9 @@ def get_standard_message(self, to, subject, author=None):
7373
writer.addheader('From', author)
7474
writer.addheader('Date', formatdate(localtime=True))
7575

76+
# add a Precedence header so autoresponders ignore us
77+
writer.addheader('Precedence', 'bulk')
78+
7679
# Add a unique Roundup header to help filtering
7780
writer.addheader('X-Roundup-Name', encode_header(tracker_name,
7881
charset))

0 commit comments

Comments
 (0)