aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorRadek Doulik <rodo@helixcode.com>2000-11-11 04:46:59 +0800
committerRadek Doulik <rodo@src.gnome.org>2000-11-11 04:46:59 +0800
commit88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e (patch)
treeeb1ddd03e63ef5fdac4c96efb04e738b8b5646c4 /camel
parent3d3cfc1137a698a43d6a0137a2924f5933b12f17 (diff)
downloadgsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.gz
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.bz2
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.lz
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.xz
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.zst
gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.zip
fix ids ending with '.'
2000-11-10 Radek Doulik <rodo@helixcode.com> * camel-mime-utils.c (header_msgid_generate): fix ids ending with '.' svn path=/trunk/; revision=6536
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-mime-utils.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7fc82ec4ef..e9431b7ca0 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-10 Radek Doulik <rodo@helixcode.com>
+
+ * camel-mime-utils.c (header_msgid_generate): fix ids ending with '.'
+
2000-11-09 Dan Winship <danw@helixcode.com>
* providers/imap/camel-imap-auth.c (imap_try_kerberos_v4_auth):
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 18c005e3fb..0bc0fa24dc 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3089,7 +3089,8 @@ header_msgid_generate (void)
gethostname (host, sizeof (host));
getdomainname (domain, sizeof (domain));
- return g_strdup_printf ("%d.%d.%d.camel@%s.%s", (gint) time (NULL), getpid (), count++, host, domain);
+ return g_strdup_printf ("%d.%d.%d.camel@%s.%s", (gint) time (NULL), getpid (), count++,
+ (host && *host) ? host : "unknown.host", (domain && *domain) ? domain : "unknown.domain");
}
gchar *