2005-11-24 [cleroy] 1.9.100cvs32

* src/compose.c
		Fix bug #856 (reediting messages forgets Request
		Return Receipt)
This commit is contained in:
Colin Leroy 2005-11-24 17:20:52 +00:00
parent b36b10febd
commit 0d6303cd59
4 changed files with 23 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-11-24 [cleroy] 1.9.100cvs32
* src/compose.c
Fix bug #856 (reediting messages forgets Request
Return Receipt)
2005-11-24 [paul] 1.9.100cvs31
* manual/addrbook.xml

View file

@ -1015,3 +1015,4 @@
( cvs diff -u -r 1.1.2.4 -r 1.1.2.5 manual/advanced.xml; ) > 1.9.100cvs29.patchset
( cvs diff -u -r 1.60.2.39 -r 1.60.2.40 src/addressbook.c; cvs diff -u -r 1.28.2.12 -r 1.28.2.13 src/addrindex.c; cvs diff -u -r 1.2.4.9 -r 1.2.4.10 src/browseldap.c; cvs diff -u -r 1.1.2.24 -r 1.1.2.25 src/wizard.c; ) > 1.9.100cvs30.patchset
( cvs diff -u -r 1.1.2.1 -r 1.1.2.2 manual/addrbook.xml; cvs diff -u -r 1.1.2.5 -r 1.1.2.6 manual/advanced.xml; cvs diff -u -r 1.1.2.1 -r 1.1.2.2 manual/starting.xml; cvs diff -u -r 1.14.2.7 -r 1.14.2.8 src/importldif.c; cvs diff -u -r 1.1.2.25 -r 1.1.2.26 src/wizard.c; ) > 1.9.100cvs31.patchset
( cvs diff -u -r 1.382.2.196 -r 1.382.2.197 src/compose.c; ) > 1.9.100cvs32.patchset

View file

@ -11,7 +11,7 @@ MINOR_VERSION=9
MICRO_VERSION=100
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=31
EXTRA_VERSION=32
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=

View file

@ -1562,6 +1562,14 @@ void compose_reedit(MsgInfo *msginfo)
gtk_editable_delete_text(GTK_EDITABLE(compose->savemsg_entry), 0, -1);
gtk_editable_insert_text(GTK_EDITABLE(compose->savemsg_entry), &queueheader_buf[4], strlen(&queueheader_buf[4]), &startpos);
}
if (!procheader_get_header_from_msginfo(msginfo, queueheader_buf, sizeof(queueheader_buf), "RRCPT:")) {
gint active = atoi(&queueheader_buf[strlen("RRCPT:")]);
if (active) {
GtkItemFactory *ifactory;
ifactory = gtk_item_factory_from_widget(compose->menubar);
menu_set_active(ifactory, "/Options/Request Return Receipt", TRUE);
}
}
}
if (compose_parse_header(compose, msginfo) < 0) return;
@ -4380,6 +4388,10 @@ static gint compose_queue_sub(Compose *compose, gint *msgnum, FolderItem **item,
fprintf(fp, "SCF:%s\n", savefolderid);
g_free(savefolderid);
}
/* Save copy folder */
if (compose->return_receipt) {
fprintf(fp, "RRCPT:1\n");
}
/* Message-ID of message replying to */
if ((compose->replyinfo != NULL) && (compose->replyinfo->msgid != NULL)) {
gchar *folderid;
@ -6963,6 +6975,9 @@ static void compose_draft_cb(gpointer data, guint action, GtkWidget *widget)
fprintf(fp, "SCF:%s\n", savefolderid);
g_free(savefolderid);
}
if (compose->return_receipt) {
fprintf(fp, "RRCPT:1\n");
}
if (compose->privacy_system) {
fprintf(fp, "X-Sylpheed-Sign:%d\n", compose->use_signing);
fprintf(fp, "X-Sylpheed-Encrypt:%d\n", compose->use_encryption);