From bf304afc8a019174580a7ee60058662f4082a207 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 7 Oct 2002 18:10:24 +0000 Subject: Fix all mailing list regex patterns to allow any number of spaces *or* 2002-10-06 Jeffrey Stedfast * 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 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-utils.c | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) (limited to 'camel') 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 + + * 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 * 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: */ - { "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 */ /* List-Id: */ /* List-Id: */ @@ -3748,31 +3748,31 @@ static struct { { "List-Id", "[^<]*<([^\\.>]+)\\.?([^ \n\t\r>]*)" }, /* List-Post: */ /* List-Post: */ - { "List-Post", " *]+)@?([^ \n\t\r>]*)" }, + { "List-Post", "[ \t]*]+)@?([^ \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: */ /* Sender: owner-gnome-hackers */ /* Sender: */ - { "Return-Path", " ]+)@?([^ \n\t\r>]*)" }, + { "Return-Path", "[ \t]*]+)@?([^ \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 * -- cgit