From 24b8175a74232d4b8ae850e5012a9317e4f6532a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 28 Oct 2003 19:15:12 +0000 Subject: We should check List-Post before List-Id (List-Post has to contain the 2003-10-28 Jeffrey Stedfast * camel-mime-utils.c: We should check List-Post before List-Id (List-Post has to contain the mailing-list posting address, whereas List-Id does not.) WAlso moved X-Loop to after List-Id to make FreeBSD lusers happy. Fixes bug #32297. svn path=/trunk/; revision=23111 --- camel/ChangeLog | 7 +++++++ camel/camel-mime-utils.c | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index ed7ad1b2f0..1fd44c08d5 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2003-10-28 Jeffrey Stedfast + + * camel-mime-utils.c: We should check List-Post before List-Id + (List-Post has to contain the mailing-list posting address, + whereas List-Id does not.) WAlso moved X-Loop to after List-Id to + make FreeBSD lusers happy. Fixes bug #32297. + 2003-10-28 Jeffrey Stedfast * Fixes bug #35083 diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 967762dc65..877c444732 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3861,25 +3861,25 @@ static struct { char *pattern; regex_t regex; } mail_list_magic[] = { - /* X-Mailing-List: arcive/latest/100 */ - /* X-Mailing-List: gnome-hackers@gnome.org */ - /* X-Mailing-List: gnome-hackers */ - /* X-Mailing-List: */ - { "X-Mailing-List", "[ \t]*]+)@?([^ \n\t\r>]*)" }, - /* X-Loop: gnome-hackers@gnome.org */ - { "X-Loop", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" }, + /* List-Post: */ + /* List-Post: */ + { "List-Post", "[ \t]*]+)@?([^ \n\t\r>]*)" }, /* List-Id: GNOME stuff */ /* List-Id: */ /* List-Id: */ /* This old one wasn't very useful: { "List-Id", " *([^<]+)" },*/ { "List-Id", "[^<]*<([^\\.>]+)\\.?([^ \n\t\r>]*)" }, - /* List-Post: */ - /* List-Post: */ - { "List-Post", "[ \t]*]+)@?([^ \n\t\r>]*)" }, /* Mailing-List: list gnome-hackers@gnome.org; contact gnome-hackers-owner@gnome.org */ { "Mailing-List", "[ \t]*list ([^@]+)@?([^ \n\t\r>;]*)" }, /* Originator: gnome-hackers@gnome.org */ { "Originator", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" }, + /* X-Mailing-List: arcive/latest/100 */ + /* X-Mailing-List: gnome-hackers@gnome.org */ + /* X-Mailing-List: gnome-hackers */ + /* X-Mailing-List: */ + { "X-Mailing-List", "[ \t]*]+)@?([^ \n\t\r>]*)" }, + /* X-Loop: gnome-hackers@gnome.org */ + { "X-Loop", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" }, /* X-List: gnome-hackers */ /* X-List: gnome-hackers@gnome.org */ { "X-List", "[ \t]*([^@]+)@?([^ \n\t\r>]*)" }, -- cgit