You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2007/07/22 20:53:09 UTC

svn commit: r558526 - /httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c

Author: colm
Date: Sun Jul 22 11:53:06 2007
New Revision: 558526

URL: http://svn.apache.org/viewvc?view=rev&rev=558526
Log:
Permit the non-presence of a domain in a List-Post: header.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c?view=diff&rev=558526&r1=558525&r2=558526
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c Sun Jul 22 11:53:06 2007
@@ -206,13 +206,13 @@
 
     domain = strchr(ml, '@');
     if (!domain) {
-        apr_file_printf(errfile, "Error: Failed to parse domain name "
-                        "from '%s'" NL, ml);
-        return EXIT_FAILURE;
+        /* Domains are not mandatory */
+        domain = "";
+    }
+    else {
+        *domain = '\0';
+        *domain++;
     }
-
-    *domain = '\0';
-    *domain++;
 
     list = strchr(ml, ':');
     if (!list) {