aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
author6 <NotZed@Ximian.com>2001-10-17 04:35:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-17 04:35:49 +0800
commita009ea9f2d21e7d851fe0952a75e2183cf1ea74d (patch)
tree6cb6b17f820b8062b54e44f4ab748c0d2ac83583 /camel/camel-mime-utils.c
parent1ec9e205a1d1feca0758d94c255bf7483c08b77b (diff)
downloadgsoc2013-evolution-a009ea9f2d21e7d851fe0952a75e2183cf1ea74d.tar.gz
gsoc2013-evolution-a009ea9f2d21e7d851fe0952a75e2183cf1ea74d.tar.zst
gsoc2013-evolution-a009ea9f2d21e7d851fe0952a75e2183cf1ea74d.zip
If no content, dont try and decode further and spit meaningless warnings.
2001-10-16 <NotZed@Ximian.com> * camel-mime-utils.c (header_address_decode): If no content, dont try and decode further and spit meaningless warnings. svn path=/trunk/; revision=13702
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 451c9c8854..a76db94767 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2803,6 +2803,10 @@ header_address_decode(const char *in)
if (in == NULL)
return NULL;
+ header_decode_lwsp(&inptr);
+ if (*inptr == 0)
+ return NULL;
+
do {
last = inptr;
addr = header_decode_address(&inptr);