? email_case.patch
Index: mailcomment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mailcomment/mailcomment.module,v
retrieving revision 1.1.2.22
diff -u -p -w -r1.1.2.22 mailcomment.module
--- mailcomment.module	5 Jun 2010 17:12:45 -0000	1.1.2.22
+++ mailcomment.module	10 Sep 2010 18:20:10 -0000
@@ -308,11 +308,11 @@ function mailcomment_mailhandler($node, 
   }
   $to = $header->to[0]->mailbox . '@' . $header->to[0]->host;
   // If not a catchall, check only for direct matches
-  if (in_array($to, mailcomment_mailboxes())) {
+  if (in_array(strtolower($to), array_filter(mailcomment_mailboxes(), 'strtolower'))) {
     $matched = TRUE;
   }
   // Do host match for catchalls
-  else if (in_array($header->to[0]->host, $hosts)) {
+  else if (in_array(strtolower($header->to[0]->host), array_filter($hosts, 'strtolower'))) {
     $matched = TRUE;
   }
   if ($matched && $node->threading && empty($node->mailcomment['params']['error'])) {
