1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

When doing "Reply to all" try harder to remove own address from the To/CC

lists by using case-independent comparision.
This commit is contained in:
Maxim Sobolev 2001-05-11 18:30:03 +00:00
parent 6c5b653ce8
commit df4bb3e2a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42534
2 changed files with 29 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= pygmy
PORTVERSION= 0.5.7
PORTREVISION= 1
CATEGORIES= mail python gnome
MASTER_SITES= http://pygmy.sourceforge.net/

View File

@ -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 @@
##
##