aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-08 02:24:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-08 02:24:44 +0800
commit725c2912fc8e06f14685a07284200be1ede581bf (patch)
treea9e59d5cb87cd8550b9a0f7655568bfd3d4a6a39 /mail/mail-ops.c
parentc2b4339041465f502db05e7042db2a053d8fef8e (diff)
downloadgsoc2013-evolution-725c2912fc8e06f14685a07284200be1ede581bf.tar.gz
gsoc2013-evolution-725c2912fc8e06f14685a07284200be1ede581bf.tar.zst
gsoc2013-evolution-725c2912fc8e06f14685a07284200be1ede581bf.zip
Get rid of kludge around subject beginning with spaces.
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * mail-format.c (write_headers): Get rid of kludge around subject beginning with spaces. (mail_generate_reply): Get rid of kludge around subject beginning with spaces and also use g_strncasecmp instead of strncasecmp for portability * mail-ops.c (forward_msg): Get rid of kludges around subject beginning with spaces. svn path=/trunk/; revision=4572
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index aa0323e842..41211d20ea 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -571,8 +571,8 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
message = e_msg_composer_get_message (composer);
subject = camel_mime_message_get_subject (message);
- if (subject == NULL || subject[0] == '\0') {
- if (! ask_confirm_for_empty_subject (composer)) {
+ if (!subject || !*subject) {
+ if (!ask_confirm_for_empty_subject (composer)) {
gtk_object_unref (GTK_OBJECT (message));
return;
}
@@ -750,8 +750,6 @@ forward_msg (GtkWidget *button, gpointer user_data)
subject = camel_mime_message_get_subject (cursor_msg);
if (from) {
if (subject && *subject) {
- while (*subject == ' ')
- subject++;
fwd_subj = g_strdup_printf ("[%s] %s", from, subject);
} else {
fwd_subj = g_strdup_printf ("[%s] (forwarded message)",