diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-05-12 02:30:03 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-05-12 02:30:03 +0800 |
commit | 0f8ac777580ae22e2c572c5382c864b2dee0ab44 (patch) | |
tree | deef4cca275e6f5569be6b402401cfac0baa494d /mail/pygmy/files | |
parent | 47b745b18c03c34a312c26fa2cafe0b1d0b6ee72 (diff) | |
download | freebsd-ports-gnome-0f8ac777580ae22e2c572c5382c864b2dee0ab44.tar.gz freebsd-ports-gnome-0f8ac777580ae22e2c572c5382c864b2dee0ab44.tar.zst freebsd-ports-gnome-0f8ac777580ae22e2c572c5382c864b2dee0ab44.zip |
When doing "Reply to all" try harder to remove own address from the To/CC
lists by using case-independent comparision.
Diffstat (limited to 'mail/pygmy/files')
-rw-r--r-- | mail/pygmy/files/patch-edit.py | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/mail/pygmy/files/patch-edit.py b/mail/pygmy/files/patch-edit.py index b7d3c4224dca..e01607967b2c 100644 --- a/mail/pygmy/files/patch-edit.py +++ b/mail/pygmy/files/patch-edit.py @@ -2,7 +2,34 @@ $FreeBSD$ --- edit.py.orig Fri May 11 16:44:12 2001 -+++ edit.py Fri May 11 19:30:04 2001 ++++ edit.py Fri May 11 21:01:18 2001 +@@ -350,9 +350,9 @@ + for a in self.prefs.accounts.keys(): + username, emailaddr, sigfile, replyaddr = self.prefs.accounts[a] + if emailaddr != '': +- ownaddrs.append(emailaddr) ++ ownaddrs.append(emailaddr.lower()) + if replyaddr != '': +- ownaddrs.append(replyaddr) ++ ownaddrs.append(replyaddr.lower()) + + # Get all the target addresses + to = rfc822.AddressList(rt) + \ +@@ -361,12 +361,12 @@ + tostr = [] + + for i in to.addresslist: +- if i[1] not in ownaddrs and i[1] != None: ++ if i[1].lower() not in ownaddrs and i[1] != None: + tostr.append(i[1]) + ccstr = [] + + for i in cc.addresslist: +- if i[1] not in ownaddrs and i[1] != None: ++ if i[1].lower() not in ownaddrs and i[1] != None: + ccstr.append(i[1]) + + self.e1.set_text(mimify.mime_decode_header(string.join(tostr, ', '))) @@ -444,9 +444,8 @@ ## ## |