evolution-exchange r1640 - in trunk: . mail
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-exchange r1640 - in trunk: . mail
- Date: Thu, 8 May 2008 02:11:00 +0100 (BST)
Author: tml
Date: Thu May 8 01:11:00 2008
New Revision: 1640
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1640&view=rev
Log:
2008-05-08 Tor Lillqvist <tml novell com>
* mail/mail-stub-exchange.c (send_message): Use g_get_host_name()
instead of gethostname().
Modified:
trunk/ChangeLog
trunk/mail/mail-stub-exchange.c
Modified: trunk/mail/mail-stub-exchange.c
==============================================================================
--- trunk/mail/mail-stub-exchange.c (original)
+++ trunk/mail/mail-stub-exchange.c Thu May 8 01:11:00 2008
@@ -2908,7 +2908,7 @@
MailStubExchange *mse = MAIL_STUB_EXCHANGE (stub);
SoupMessage *msg;
E2kHTTPStatus status;
- char *timestamp, hostname[256], *errmsg;
+ char *timestamp, *errmsg;
GString *data;
int i;
@@ -2928,11 +2928,9 @@
/* Exchange doesn't add a "Received" header to messages
* received via WebDAV.
*/
- if (gethostname (hostname, sizeof (hostname)) != 0)
- strcpy (hostname, "localhost");
timestamp = e2k_make_timestamp_rfc822 (time (NULL));
g_string_append_printf (data, "Received: from %s by %s; %s\r\n",
- hostname, mse->account->exchange_server,
+ g_get_host_name (), mse->account->exchange_server,
timestamp);
g_free (timestamp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]