+2003-07-19 [alfons] 0.9.3claws26
+
+ * src/compose.c
+ * src/common/utils.c
+ honour #240 "Better SUBJECT handling" by cleaning the prefix
+ for both forwarding as replying
+
2003-07-18 [christoph] 0.9.3claws25
* configure.ac
MICRO_VERSION=3
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=25
+EXTRA_VERSION=26
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws${EXTRA_VERSION}
dnl set $target
"Antw\\:", /* "Antw:" (Dutch / German Outlook) */
"Aw\\:", /* "Aw:" (German) */
"Antwort\\:", /* "Antwort:" (German Lotus Notes) */
- "Res\\:" /* "Res:" (Brazilian Outlook) */
+ "Res\\:", /* "Res:" (Brazilian Outlook) */
+ "Fw\\:" /* "Fw:" Forward */
/* add more */
};
const int REPLY_PREFIXES = sizeof reply_prefixes / sizeof reply_prefixes[0];
compose->fwdinfo = procmsg_msginfo_copy(msginfo);
if (msginfo->subject && *msginfo->subject) {
- gtk_entry_set_text(GTK_ENTRY(compose->subject_entry), "Fw: ");
- gtk_entry_append_text(GTK_ENTRY(compose->subject_entry),
- msginfo->subject);
+ gchar *buf, *buf2, *p;
+
+ buf = p = g_strdup(msginfo->subject);
+ p += subject_get_reply_prefix_length(p);
+ memmove(buf, p, strlen(p) + 1);
+
+ buf2 = g_strdup_printf("Fw: %s", buf);
+ gtk_entry_set_text(GTK_ENTRY(compose->subject_entry), buf2);
+
+ g_free(buf);
+ g_free(buf2);
}
text = GTK_STEXT(compose->text);