MLMMJ Mailing List Manager
 help / color / mirror / Atom feed
From: Neale Pickett <neale@woozle.org>
To: mlmmj@mlmmj.org
Subject: case-insensitive list names patch
Date: Mon, 26 Sep 2005 01:01:16 +0000	[thread overview]
Message-ID: <4337485C.3080707@woozle.org> (raw)

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;
                        }



                 reply	other threads:[~2005-09-26  1:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4337485C.3080707@woozle.org \
    --to=neale@woozle.org \
    --cc=mlmmj@mlmmj.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox