aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-08 02:10:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-08 02:10:24 +0800
commitbf304afc8a019174580a7ee60058662f4082a207 (patch)
treeb223c15f25452a7ca84d6fa0a71e6d39a0923527
parentfdb774412ddd69ce24173f2c9ba2e84ca07601b0 (diff)
downloadgsoc2013-evolution-bf304afc8a019174580a7ee60058662f4082a207.tar.gz
gsoc2013-evolution-bf304afc8a019174580a7ee60058662f4082a207.tar.zst
gsoc2013-evolution-bf304afc8a019174580a7ee60058662f4082a207.zip
Fix all mailing list regex patterns to allow any number of spaces *or*
2002-10-06 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c: Fix all mailing list regex patterns to allow any number of spaces *or* tabs as pre-padding for the header values. svn path=/trunk/; revision=18333
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-utils.c22
2 files changed, 17 insertions, 11 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6af81525f5..68f63ef12a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-10-06 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c: Fix all mailing list regex patterns to allow
+ any number of spaces *or* tabs as pre-padding for the header
+ values.
+
2002-10-03 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part.c (write_to_stream): Use the content-object's
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 3797215684..ef21531f0b 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3738,9 +3738,9 @@ static struct {
/* X-Mailing-List: gnome-hackers@gnome.org */
/* X-Mailing-List: gnome-hackers */
/* X-Mailing-List: <gnome-hackers> */
- { "X-Mailing-List", " <?([^@>]+)@?([^ \n\t\r>]*)" },
+ { "X-Mailing-List", "[ \t]*<?([^@>]+)@?([^ \n\t\r>]*)" },
/* X-Loop: gnome-hackers@gnome.org */
- { "X-Loop", " *([^@]+)@?([^ \n\t\r>]*)" },
+ { "X-Loop", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" },
/* List-Id: GNOME stuff <gnome-hackers.gnome.org> */
/* List-Id: <gnome-hackers.gnome.org> */
/* List-Id: <gnome-hackers> */
@@ -3748,31 +3748,31 @@ static struct {
{ "List-Id", "[^<]*<([^\\.>]+)\\.?([^ \n\t\r>]*)" },
/* List-Post: <mailto:gnome-hackers@gnome.org> */
/* List-Post: <mailto:gnome-hackers> */
- { "List-Post", " *<mailto:([^@>]+)@?([^ \n\t\r>]*)" },
+ { "List-Post", "[ \t]*<mailto:([^@>]+)@?([^ \n\t\r>]*)" },
/* Mailing-List: list gnome-hackers@gnome.org; contact gnome-hackers-owner@gnome.org */
- { "Mailing-List", " *list ([^@]+)@?([^ \n\t\r>;]*)" },
+ { "Mailing-List", "[ \t]*list ([^@]+)@?([^ \n\t\r>;]*)" },
/* Originator: gnome-hackers@gnome.org */
- { "Originator", " *([^@]+)@?([^ \n\t\r>]*)" },
+ { "Originator", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" },
/* X-List: gnome-hackers */
/* X-List: gnome-hackers@gnome.org */
- { "X-List", " *([^@]+)@?([^ \n\t\r>]*)" },
+ { "X-List", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" },
/* Sender: owner-gnome-hackers@gnome.org */
/* Sender: owner-gnome-hacekrs */
- { "Sender", " *owner-([^@]+)@?([^ @\n\t\r>]*)" },
+ { "Sender", "[ \t]*owner-([^@]+)@?([^ @\n\t\r>]*)" },
/* Sender: gnome-hackers-owner@gnome.org */
/* Sender: gnome-hackers-owner */
- { "Sender", " *([^@]+)-owner@?([^ @\n\t\r>]*)" },
+ { "Sender", "[ \t]*([^@]+)-owner@?([^ @\n\t\r>]*)" },
/* Delivered-To: mailing list gnome-hackers@gnome.org */
/* Delivered-To: mailing list gnome-hackers */
- { "Delivered-To", " *mailing list ([^@]+)@?([^ \n\t\r>]*)" },
+ { "Delivered-To", "[ \t]*mailing list ([^@]+)@?([^ \n\t\r>]*)" },
/* Sender: owner-gnome-hackers@gnome.org */
/* Sender: <owner-gnome-hackers@gnome.org> */
/* Sender: owner-gnome-hackers */
/* Sender: <owner-gnome-hackers> */
- { "Return-Path", " <?owner-([^@>]+)@?([^ \n\t\r>]*)" },
+ { "Return-Path", "[ \t]*<?owner-([^@>]+)@?([^ \n\t\r>]*)" },
/* X-BeenThere: gnome-hackers@gnome.org */
/* X-BeenThere: gnome-hackers */
- { "X-BeenThere", " *([^@]+)@?([^ \n\t\r>]*)" },
+ { "X-BeenThere", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" },
};
char *