diff options
| author | klm | 1998-10-06 04:54:54 +0000 |
|---|---|---|
| committer | klm | 1998-10-06 04:54:54 +0000 |
| commit | f0ec137d5b1d2af95de1b6e01386a0e6b619ed10 (patch) | |
| tree | 3be78e0775e11cbba94a9088ded50ca5635cb69a /Mailman/Message.py | |
| parent | 904dc1c08e077cc251e6b50846bf3f3d412bfa7f (diff) | |
| download | mailman-f0ec137d5b1d2af95de1b6e01386a0e6b619ed10.tar.gz mailman-f0ec137d5b1d2af95de1b6e01386a0e6b619ed10.tar.zst mailman-f0ec137d5b1d2af95de1b6e01386a0e6b619ed10.zip | |
Diffstat (limited to 'Mailman/Message.py')
| -rw-r--r-- | Mailman/Message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py index 83d3d3b6f..445c10ae1 100644 --- a/Mailman/Message.py +++ b/Mailman/Message.py @@ -145,7 +145,9 @@ class IncomingMessage(rfc822.Message): def SetHeader(self, name, value, crush_duplicates=1): # Well, we crush dups in the dict no matter what... - name = "%s%s" % (name[0], name[1:]) + # XXX Note that as of Python 1.5.2, rfc822 message objects support + # a .__setattr__() that does what we want, so eventually we'll + # want to switch to that instead of mucking w/the internal rep. newheader = not self.dict.has_key(string.lower(name)) self.dict[string.lower(name)] = value if value[-1] <> '\n': |
