balsa r7942 - in trunk: . libbalsa
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7942 - in trunk: . libbalsa
- Date: Thu, 12 Jun 2008 15:09:54 +0000 (UTC)
Author: PeterB
Date: Thu Jun 12 15:09:54 2008
New Revision: 7942
URL: http://svn.gnome.org/viewvc/balsa?rev=7942&view=rev
Log:
GMimeParserHeaderRegexFunc cleanup
Modified:
trunk/ChangeLog
trunk/libbalsa/mailbox_mbox.c
Modified: trunk/libbalsa/mailbox_mbox.c
==============================================================================
--- trunk/libbalsa/mailbox_mbox.c (original)
+++ trunk/libbalsa/mailbox_mbox.c Thu Jun 12 15:09:54 2008
@@ -341,9 +341,9 @@
static void
lbm_mbox_header_cb(GMimeParser * parser, const char *header,
const char *value, off_t offset,
- struct message_info **msg_info_p)
+ gpointer user_data)
{
- struct message_info *msg_info = *msg_info_p;
+ struct message_info *msg_info = *(struct message_info **) user_data;
if (g_ascii_strcasecmp(header, "Status") == 0 && msg_info->status < 0)
msg_info->status = offset;
@@ -470,7 +470,6 @@
g_mime_parser_set_respect_content_length(gmime_parser, TRUE);
g_mime_parser_set_header_regex(gmime_parser,
"^Status|^X-Status|^MIME-Version",
- (GMimeParserHeaderRegexFunc)
lbm_mbox_header_cb, &msg_info_p);
libbalsa_mailbox_local_set_threading_info(local);
@@ -1618,7 +1617,6 @@
g_mime_parser_set_respect_content_length(gmime_parser, TRUE);
g_mime_parser_set_header_regex(gmime_parser,
"^Status|^X-Status|^MIME-Version",
- (GMimeParserHeaderRegexFunc)
lbm_mbox_header_cb, &msg_info);
for (j = first; j < mbox->msgno_2_msg_info->len; ) {
GMimeMessage *mime_msg;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]