Package: libetpan13
Version: 0.54-3
Severity: normal
Tags: patch

When using the cached IMAP storage, the second call to
mailmessage_get_bodystructure returns a NULL mime structure.

The problem is that the return variable is not being set, see
the attached patch for a fix.

Cheers,
Jeremy

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libetpan13 depends on:
ii  libc6                    2.7-13          GNU C Library: Shared libraries
ii  libcurl3-gnutls          7.18.2-7        Multi-protocol file transfer libra
ii  libdb4.6                 4.6.21-10       Berkeley v4.6 Database Libraries [
ii  libexpat1                2.0.1-4         XML parsing C library - runtime li
ii  libgcc1                  1:4.3.2-1       GCC support library
ii  libgnutls26              2.4.1-1         the GNU TLS library - runtime libr
ii  liblockfile1             1.08-2          NFS-safe locking library, includes
ii  libsasl2-2               2.1.22.dfsg1-23 Cyrus SASL - authentication abstra
ii  libstdc++6               4.3.2-1         The GNU Standard C++ Library v3

libetpan13 recommends no packages.

libetpan13 suggests no packages.

-- no debconf information
diff -urN libetpan-0.54.orig/src/driver/implementation/imap/imapdriver_cached_message.c libetpan-0.54/src/driver/implementation/imap/imapdriver_cached_message.c
--- libetpan-0.54.orig/src/driver/implementation/imap/imapdriver_cached_message.c	2008-02-17 14:13:26.000000000 +0100
+++ libetpan-0.54/src/driver/implementation/imap/imapdriver_cached_message.c	2008-09-13 11:11:23.000000000 +0200
@@ -502,6 +502,7 @@
     cleanup_mime(mime);
     
     msg_info->msg_mime = mime;
+    *result = mime;
     
     return MAIL_NO_ERROR;
   }

Reply via email to