httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r558526 - /httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c
Date Sun, 22 Jul 2007 18:53:09 GMT
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) {



Mime
View raw message