aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2005-04-09 01:48:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2005-04-09 01:48:45 +0800
commit9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26 (patch)
treee3cc51da1cf27c712b2ab0a73cfef5efcf453a70 /mail
parent22d32e8be54cd9940c5ff68375764916563e3130 (diff)
downloadgsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar.gz
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar.bz2
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar.lz
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar.xz
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.tar.zst
gsoc2013-evolution-9e95f43f157a0ba9fa52ca9b6f77134a62d9aa26.zip
Simplify the scanning for '@' by using strchr().
2005-04-08 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (em_utils_send_receipt): Simplify the scanning for '@' by using strchr(). svn path=/trunk/; revision=29197
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog11
-rw-r--r--mail/em-composer-utils.c11
2 files changed, 12 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6fc1517054..93a3cd023e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-08 Jeffrey Stedfast <fejj@novell.com>
+
+ * em-composer-utils.c (em_utils_send_receipt): Simplify the
+ scanning for '@' by using strchr().
+
2005-04-08 Not Zed <NotZed@Ximian.com>
* em-composer-utils.c (em_utils_ask_receipt): removed.
@@ -225,8 +230,8 @@
2005-02-25 Mengjie Yu <meng-jie.yu@sun.com>
- * em-folder-browser.c: (emfb_edit_select_all):make the 'select all'
- work in all conditions.
+ * em-folder-browser.c (emfb_edit_select_all): make the 'select
+ all' work in all conditions.
Fixes #72545
@@ -288,7 +293,7 @@
2005-02-22 Marco Pesenti Gritti <marco@gnome.org>
- * mail/em-popup.c: (emp_apps_open_in), (emp_standard_menu_factory):
+ * mail/em-popup.c (emp_apps_open_in, emp_standard_menu_factory):
Use gnome-vfs API to launch external applications
2005-02-22 Not Zed <NotZed@Ximian.com>
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index c018337584..975d560ba8 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1135,9 +1135,7 @@ void
em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message)
{
/* See RFC #2298 for a description of message receipts */
-
EAccount *account = guess_account (message, folder);
-
CamelMimeMessage *receipt = camel_mime_message_new ();
CamelMultipart *body = camel_multipart_new ();
CamelMimePart *part;
@@ -1160,13 +1158,12 @@ em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message)
return;
/* Collect information for the receipt */
-
+
/* We use camel_header_msgid_generate () to get a canonical
* hostname, then skip the part leading to '@' */
- fake_msgid = camel_header_msgid_generate ();
- for (hostname = fake_msgid; hostname && *hostname != '@'; ++hostname);
- ++hostname;
-
+ hostname = strchr ((fake_msgid = camel_header_msgid_generate ()), '@');
+ hostname++;
+
self_address = account->id->address;
if (!message_id)