[balsa] Complete support for DSN's (Albrecht Dreß )
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Complete support for DSN's (Albrecht Dreß )
- Date: Fri, 27 Feb 2015 21:33:29 +0000 (UTC)
commit 9111fd1c74e94d91ae2def3c6a5131c6c4199305
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Feb 27 16:32:21 2015 -0500
Complete support for DSN's (Albrecht Dreß)
* libbalsa/send.c (libbalsa_message_queue), (lbs_process_queue),
(libbalsa_fill_msg_queue_item_from_queu): complete support for
DSN's
ChangeLog | 6 ++++++
libbalsa/send.c | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2a1a753..5f6abc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-27 Albrecht Dreß
+
+ * libbalsa/send.c (libbalsa_message_queue), (lbs_process_queue),
+ (libbalsa_fill_msg_queue_item_from_queu): complete support for
+ DSN's
+
2015-02-24 Albrecht Dreß
Support for successful DSN's
diff --git a/libbalsa/send.c b/libbalsa/send.c
index fa241ba..eb6e2b8 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -473,6 +473,8 @@ libbalsa_message_queue(LibBalsaMessage * message, LibBalsaMailbox * outbox,
if (fccbox)
g_mime_object_set_header(GMIME_OBJECT(message->mime_msg), "X-Balsa-Fcc",
fccbox->url);
+ g_mime_object_set_header(GMIME_OBJECT(message->mime_msg), "X-Balsa-DSN",
+ message->request_dsn ? "1" : "0");
#if ENABLE_ESMTP
g_mime_object_set_header(GMIME_OBJECT(message->mime_msg), "X-Balsa-SmtpServer",
libbalsa_smtp_server_get_name(smtp_server));
@@ -710,6 +712,8 @@ lbs_process_queue(LibBalsaMailbox * outbox, LibBalsaFccboxFinder finder,
g_object_unref(msg);
continue;
}
+ msg->request_dsn =
+ (atoi(libbalsa_message_get_user_header(msg, "X-Balsa-DSN")) != 0);
new_message = msg_queue_item_new(finder);
created = libbalsa_fill_msg_queue_item_from_queu(msg, new_message);
@@ -2082,6 +2086,8 @@ libbalsa_fill_msg_queue_item_from_queu(LibBalsaMessage * message,
"X-Balsa-Fcc");
g_mime_object_remove_header(GMIME_OBJECT(message->mime_msg),
"X-Balsa-SmtpServer");
+ g_mime_object_remove_header(GMIME_OBJECT(message->mime_msg),
+ "X-Balsa-DSN");
mqi->stream = g_mime_stream_mem_new();
libbalsa_mailbox_lock_store(message->mailbox);
g_mime_object_write_to_stream(GMIME_OBJECT(message->mime_msg),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]