balsa r7912 - in trunk: . libbalsa
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7912 - in trunk: . libbalsa
- Date: Sat, 19 Apr 2008 14:06:27 +0100 (BST)
Author: PeterB
Date: Sat Apr 19 13:06:27 2008
New Revision: 7912
URL: http://svn.gnome.org/viewvc/balsa?rev=7912&view=rev
Log:
scrap remaining warnings
Modified:
trunk/ChangeLog
trunk/libbalsa/message.c
Modified: trunk/libbalsa/message.c
==============================================================================
--- trunk/libbalsa/message.c (original)
+++ trunk/libbalsa/message.c Sat Apr 19 13:06:27 2008
@@ -1116,15 +1116,15 @@
g_ascii_strcasecmp(name, "From") == 0) {
message->headers->from = internet_address_parse_string(value);
} else
- if (g_ascii_strcasecmp(name, "To") == 0) {
- g_return_val_if_fail(message->headers->to_list == NULL, FALSE);
+ if (message->headers->to_list == NULL &&
+ g_ascii_strcasecmp(name, "To") == 0) {
message->headers->to_list = internet_address_parse_string(value);
} else
if (g_ascii_strcasecmp(name, "In-Reply-To") == 0) {
libbalsa_message_set_in_reply_to_from_string(message, value);
} else
- if (g_ascii_strcasecmp(name, "Message-ID") == 0) {
- g_return_val_if_fail(message->message_id==NULL, FALSE);
+ if (message->message_id == NULL &&
+ g_ascii_strcasecmp(name, "Message-ID") == 0) {
message->message_id = g_mime_utils_decode_message_id(value);
} else
if (g_ascii_strcasecmp(name, "References") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]