VCARD: if we loaded the vcard mime from the server don't load it again.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 6 Jul 2013 14:03:39 +0000 (16:03 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 6 Jul 2013 14:03:39 +0000 (16:03 +0200)
Thanks to Stefan for reporting this (again)

webcit/vcard_edit.c

index fee75f30f9502f9330e2db665e06bfb0d42824ae..1a9f11a67142c9feac94dd66df2d1c2a3330e31d 100644 (file)
@@ -137,7 +137,8 @@ wc_mime_attachment *load_vcard(message_summary *Msg)
        if (VCMime == NULL)
                return NULL;
 
-       MimeLoadData(VCMime);
+       if (VCMime->Data == NULL)
+               MimeLoadData(VCMime);
        return VCMime;
 }