aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-02-08 04:30:29 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-02-08 04:30:29 +0800
commitee74c2347274dd4f8f5e7ad687deb0a24eab5f7f (patch)
tree3a158bd0731d54a88583b297c8a159a222da096b /mail
parentce46cd2607c1eb758872f1b2c0d2d62290927f67 (diff)
downloadgsoc2013-evolution-ee74c2347274dd4f8f5e7ad687deb0a24eab5f7f.tar.gz
gsoc2013-evolution-ee74c2347274dd4f8f5e7ad687deb0a24eab5f7f.tar.zst
gsoc2013-evolution-ee74c2347274dd4f8f5e7ad687deb0a24eab5f7f.zip
call set_body later to allow ignored words to be sent to gtkhtml control
2002-02-07 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (mail_generate_reply): call set_body later to allow ignored words to be sent to gtkhtml control ahead svn path=/trunk/; revision=15598
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c44
2 files changed, 27 insertions, 22 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4c2926fb1a..771a3628b5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-07 Radek Doulik <rodo@ximian.com>
+
+ * mail-callbacks.c (mail_generate_reply): call set_body later to
+ allow ignored words to be sent to gtkhtml control ahead
+
2002-02-07 JP Rosevear <jpr@ximian.com>
* component-factory.c (create_component): remove "New" from user
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 6bc8c5df53..f2b7dd5064 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -875,28 +875,6 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
return NULL;
e_msg_composer_add_message_attachments (composer, message, TRUE);
-
- if ((mode & REPLY_NO_QUOTE) == 0) {
- sender = camel_mime_message_get_from (message);
- if (sender != NULL && camel_address_length (CAMEL_ADDRESS (sender)) > 0) {
- camel_internet_address_get (sender, 0, &name, &address);
- } else {
- name = _("an unknown sender");
- }
-
- date = camel_mime_message_get_date (message, NULL);
- strftime (date_str, sizeof (date_str), _("On %a, %Y-%m-%d at %H:%M, %%s wrote:"),
- localtime (&date));
- format = e_utf8_from_locale_string (date_str);
- text = mail_tool_quote_message (message, format, name && *name ? name : address);
- mail_ignore (composer, name, address);
- g_free (format);
-
- if (text) {
- e_msg_composer_set_body_text (composer, text);
- g_free (text);
- }
- }
/* Set the recipients */
accounts = mail_config_get_accounts ();
@@ -982,6 +960,28 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
g_hash_table_destroy (rcpt_hash);
}
+ /* set body text here as we want all ignored words to take effect */
+ if ((mode & REPLY_NO_QUOTE) == 0) {
+ sender = camel_mime_message_get_from (message);
+ if (sender != NULL && camel_address_length (CAMEL_ADDRESS (sender)) > 0) {
+ camel_internet_address_get (sender, 0, &name, &address);
+ } else {
+ name = _("an unknown sender");
+ }
+
+ date = camel_mime_message_get_date (message, NULL);
+ strftime (date_str, sizeof (date_str), _("On %a, %Y-%m-%d at %H:%M, %%s wrote:"),
+ localtime (&date));
+ format = e_utf8_from_locale_string (date_str);
+ text = mail_tool_quote_message (message, format, name && *name ? name : address);
+ mail_ignore (composer, name, address);
+ g_free (format);
+ if (text) {
+ e_msg_composer_set_body_text (composer, text);
+ g_free (text);
+ }
+ }
+
if (me == NULL) {
/* as a last resort, set the replying account (aka me)
to the account this was fetched from */
/td>. Make CUPS a build depends only and depend on the header file searchedglewis2008-01-211-2/+2 * . Update to tzupdater 1.3.3.glewis2008-01-132-6/+7 * . Update to patchset 3, based on 1.6.0_03 (aka 6u3).glewis2007-11-162-18/+16 * . Update to tzupdater 1.3.0 to fix the default build (the previous versionglewis2007-11-162-5/+6 * . Update to patchset 2 (based on 1.6.0_02 aka 6u2)glewis2007-10-2916-942/+48 * . Explicitly pull in X dependencies instead of depending on the open-motifglewis2007-10-211-0/+1 * Fix build on i386 with WITHOUT_WEB option.jkim2007-10-052-0/+28 * . Fix build problems with cpu.h being picked up from /usr/local/include.glewis2007-09-101-0/+24 * . Fix build failures by setting LC_ALL="C" in MAKE_ENV.glewis2007-09-091-0/+1 * . Update to tzupdater 1.2.2.glewis2007-09-082-6/+6 * . Fix another problem with exec() by using the same static initialisationglewis2007-09-022-1/+16 * . Sync the BSD specific code with the changes between 1.5 and 1.6 andglewis2007-08-282-1/+32 * . Correctly respect WITHOUT_WEB. This should fix the default amd64 buildglewis2007-08-231-8/+9 * . Make sure ${PREFIX}/share/applications exists before installing filesglewis2007-08-211-0/+1 * . Add unzip to BUILD_DEPENDS.glewis2007-08-181-0/+1 * Add browser plugin support for amd64. It is turned off by default as it isjkim2007-08-172-1/+707 * Unbreak build on -CURRENT.jkim2007-08-173-0/+51 * . Split the JRL agreement out into a separate script that is only runglewis2007-08-143-195/+195 * - Set LANG environment variable to C for non-US locale users.jkim2007-08-101-0/+3 * . Complete default the bootstrap to Diablo.glewis2007-08-071-3/+1 * . Fix the 'shebang' line in jcontrol. [1]glewis2007-08-072-2/+12 * . Make BUILD_DEPENDS against the Diablo JDK, not the Linux JDK. [2]glewis2007-08-075-13/+97 * . A native port for JDK 1.6.0 (aka 6.0) Update 1.glewis2007-08-0656-951/+588 * . Better fix. Just use 'short' variables and be done with it. Theglewis2007-07-311-3/+14 * . Include a different header file for 'fastInt'. The definition in Hint.hglewis2007-07-311-0/+13 * Add browser plugin support for amd64. It is turned off by default as it isjkim2007-07-302-1/+583 * . Fix the description of the link for the policy files.glewis2007-07-271-1/+2 * . Update 12 is current, so the download isn't in the archive section yetglewis2007-07-271-1/+1 * . Update to patchset 6, based on 1.5.0 Update 12.glewis2007-07-279-202/+14 * . Update the download location for the unlimited strength policy files.glewis2007-07-221-1/+1 * . Remove SCSL message since we're now using the JRL, which is agreed toglewis2007-06-171-1139/+0 * . Update to patchset 5, based on the 1.5.0_11 JRL source code.glewis2007-06-0921-288/+388 * . Update to tzupdater 1.2.1.glewis2007-06-032-7/+7 * Fix more sysctl(3) argument sizes and correct a comment.jkim2007-05-311-5/+31 * Various fixes for -CURRENT.jkim2007-05-2621-0/+385 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * . Fix the sense of a WITH_JAIL check to match that in the jdk14 port -glewis2007-03-081-1/+1 * . Update to tzupdater 1.1.0-2007c.glewis2007-03-082-7/+7 * . Don't statically link with libXm any more. The Open Motif port no longerglewis2007-03-061-3/+17 * . When we update the time zone data, delete the temporary copy of the oldglewis2007-03-061-0/+1 * . Whitespace nit.glewis2007-02-261-1/+1 * . Add a TZUPDATE option, defaulting to on, which will update the time zoneglewis2007-02-242-10/+27 * . Another reroll. Spell "Chuck Silvers" name correctly in the THANKSglewis2007-01-251-3/+3 * . Rerolled patchset. The only change was to have it correctly identifyglewis2007-01-241-3/+3