diff options
author | Radek Doulik <rodo@helixcode.com> | 2000-11-11 04:46:59 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2000-11-11 04:46:59 +0800 |
commit | 88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e (patch) | |
tree | eb1ddd03e63ef5fdac4c96efb04e738b8b5646c4 /camel/camel-mime-utils.c | |
parent | 3d3cfc1137a698a43d6a0137a2924f5933b12f17 (diff) | |
download | gsoc2013-evolution-88bb6dde6dd2346f47bd05a59a2b141cd3b17a6e.tar.gz 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.c | 3 |
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 * |