balsa r7905 - in trunk: . libbalsa
- From: pawels svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7905 - in trunk: . libbalsa
- Date: Thu, 3 Apr 2008 21:20:25 +0100 (BST)
Author: pawels
Date: Thu Apr 3 21:20:25 2008
New Revision: 7905
URL: http://svn.gnome.org/viewvc/balsa?rev=7905&view=rev
Log:
* libbalsa/message.c: don't modify invariants.
Modified:
trunk/ChangeLog
trunk/libbalsa/message.c
Modified: trunk/libbalsa/message.c
==============================================================================
--- trunk/libbalsa/message.c (original)
+++ trunk/libbalsa/message.c Thu Apr 3 21:20:25 2008
@@ -1135,10 +1135,10 @@
message->headers->content_type =
g_mime_content_type_new_from_string(value);
} else
- if (g_ascii_strcasecmp(name, "Disposition-Notification-To") == 0) {
- g_return_val_if_fail(message->headers->dispnotify_to == NULL, FALSE);
- message->headers->dispnotify_to =
- internet_address_parse_string(value);
+ if (message->headers->dispnotify_to == NULL &&
+ g_ascii_strcasecmp(name, "Disposition-Notification-To") == 0) {
+ message->headers->dispnotify_to =
+ internet_address_parse_string(value);
} else
#ifdef MESSAGE_COPY_CONTENT
if (g_ascii_strcasecmp(name, "Content-Length") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]