From c8498cbd6164f48558f62a3bc970f419f9102227 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 28 Oct 2002 09:13:24 +0000 Subject: never set the charset on an item without also encoding it. Mime messages 2002-10-28 Larry Ewing * backend/ebook/e-card.c (addPropValueUTF8): never set the charset on an item without also encoding it. Mime messages don't like parts with multiple charsets. svn path=/trunk/; revision=18451 --- addressbook/ChangeLog | 6 ++++++ addressbook/backend/ebook/e-card.c | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 241d257671..80ecbc62cc 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2002-10-28 Larry Ewing + + * backend/ebook/e-card.c (addPropValueUTF8): never set the charset + on an item without also encoding it. Mime messages don't like + parts with multiple charsets. + 2002-10-25 Dan Winship * gui/widgets/e-addressbook-model.c (addressbook_destroy): diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 762b5f2141..18f381713c 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -382,12 +382,8 @@ addPropValueUTF8(VObject *o, const char *p, const char *v) for (; *v; v++) { if ((*v) & 0x80) { addPropValue (prop, "CHARSET", "UTF-8"); - for (; *v; v++) { - if (*v == '\n') { - addProp(prop, VCQuotedPrintableProp); - return prop; - } - } + addProp(prop, VCQuotedPrintableProp); + return prop; } if (*v == '\n') { -- cgit v1.2.3