aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
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/camel-mime-utils.c
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/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c3
1 files changed, 2 insertions, 1 deletions
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 *