* case-insensitive list names patch
@ 2005-09-26 1:01 Neale Pickett
0 siblings, 0 replies; only message in thread
From: Neale Pickett @ 2005-09-26 1:01 UTC (permalink / raw)
To: mlmmj
This patch makes the names of the lists case-insensitive. I suspect
most mail servers ignore case in mail addresses, so this might not be an
unreasonable default.
--- src/mlmmj-process.c~ 2005-09-19 22:03:01.000000000 -0600
+++ src/mlmmj-process.c 2005-09-24 09:37:06.000000000 -0600
@@ -612,7 +612,7 @@
for(i = 0; i < toemails.emailcount; i++) {
for(j = 0; j < alternates->count; j++) {
chomp(alternates->strs[j]);
- if(strcmp(alternates->strs[j],
+ if(strcasecmp(alternates->strs[j],
toemails.emaillist[i]) = 0)
intocc = 1;
}
@@ -620,7 +620,7 @@
for(i = 0; i < ccemails.emailcount; i++) {
for(j = 0; j < alternates->count; j++) {
chomp(alternates->strs[j]);
- if(strcmp(alternates->strs[j],
+ if(strcasecmp(alternates->strs[j],
ccemails.emaillist[i]) = 0)
intocc = 1;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-26 1:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 1:01 case-insensitive list names patch Neale Pickett
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.