aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-07 04:10:02 +0800
committerDan Winship <danw@src.gnome.org>2001-09-07 04:10:02 +0800
commite243f47a722dcbabbc1e82fa2cfeb8d4edcc0f60 (patch)
tree0a967cdf3e1ccf771ce74f4336238452d023d956 /mail/mail.h
parent3f7f2d2f2e9d344dd102d245aed8e0af2a102f47 (diff)
downloadgsoc2013-evolution-e243f47a722dcbabbc1e82fa2cfeb8d4edcc0f60.tar.gz
gsoc2013-evolution-e243f47a722dcbabbc1e82fa2cfeb8d4edcc0f60.tar.zst
gsoc2013-evolution-e243f47a722dcbabbc1e82fa2cfeb8d4edcc0f60.zip
Fix a bunch of replying/forwarding-related formatting bugs.
2749 - Message text not included in reply, but html attachment is 4294 - "forward inline" should quote the same headers as the normal mail display 6100 - Reply to a forwarded email displays email headers 7255 - Replying to HTML message 7527 - replying to forwarded message w/ attachments does the wrong thing * mail-format.c (mail_get_message_rfc822): New function to get message headers and body together, for inline forwards, or replies containing attached messages. (mail_get_message_body): Redo this to always return HTML, but keep the "want_plain" flag, to decide whether to return HTML that looks like HTML or HTML that looks like plain text. Use mail_get_message_rfc822 to handle attached message/rfc822 parts. Don't include the text of vcard or icalendar attachments. Don't fail to include text parts just because we found an HTML part. (Since we're always returning HTML now, this doesn't cause problems any more.) * mail-tools.c (mail_tool_quote_message): Simplify greatly. mail_get_message_body always returns HTML now, and we let it take care of prepending "> "s too. We then let GtkHTML deal with converting the HTML to plain text if the user wants to reply in plain text. (mail_tool_forward_message): Simplify this a ton too: parts of it are moved into mail_get_message_rfc822 and parts are now unnecessary. * mail-callbacks.c (do_forward_non_attached): Call mail_tool_forward_message here always, and let it do the "> " quoting in the "quoted" case, so that we get the headers too when forwarding quoted. Related to bug #4294. svn path=/trunk/; revision=12657
Diffstat (limited to 'mail/mail.h')
-rw-r--r--mail/mail.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mail/mail.h b/mail/mail.h
index b8f96739b1..6e13d84f66 100644
--- a/mail/mail.h
+++ b/mail/mail.h
@@ -61,8 +61,7 @@ gboolean mail_part_is_inline (CamelMimePart *part);
gboolean mail_part_is_displayed_inline (CamelMimePart *part, MailDisplay *md);
void mail_part_toggle_displayed (CamelMimePart *part, MailDisplay *md);
-char *mail_get_message_body (CamelDataWrapper *data, gboolean want_plain,
- gboolean *is_html);
+char *mail_get_message_body (CamelDataWrapper *data, gboolean want_plain, gboolean cite);
/* mail-identify */
char *mail_identify_mime_part (CamelMimePart *part, MailDisplay *md);