diff options
author | Not Zed <NotZed@Ximian.com> | 2003-06-17 11:20:59 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-06-17 11:20:59 +0800 |
commit | 5c4fa91212db9383a3b9833d835f7484b4e72bf0 (patch) | |
tree | 4225efadbdcc1ff240c24e3f2ff1d57a45bfd58e /camel/camel-multipart-signed.c | |
parent | cec1fb093d53dc08d92b0e2f245640817c5a0fc2 (diff) | |
download | gsoc2013-evolution-5c4fa91212db9383a3b9833d835f7484b4e72bf0.tar.gz gsoc2013-evolution-5c4fa91212db9383a3b9833d835f7484b4e72bf0.tar.zst gsoc2013-evolution-5c4fa91212db9383a3b9833d835f7484b4e72bf0.zip |
** See bug #44322
2003-06-16 Not Zed <NotZed@Ximian.com>
** See bug #44322
* providers/imap/camel-imap-command.c (imap_command_strdup_vprintf):
If we are outputting a folder name, make sure we calculate buffer
size based on the raw/utf7 version
** See bug #44121
* camel-multipart-signed.c (signed_get_part): If we can't parse
the content, but we have a stream, just use that as the content.
svn path=/trunk/; revision=21454
Diffstat (limited to 'camel/camel-multipart-signed.c')
-rw-r--r-- | camel/camel-multipart-signed.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c index 5bce467295..a089cb0cc3 100644 --- a/camel/camel-multipart-signed.c +++ b/camel/camel-multipart-signed.c @@ -334,13 +334,16 @@ signed_get_part(CamelMultipart *multipart, guint index) return NULL; } else if (dw->stream == NULL) { return NULL; + } else if (mps->start1 == -1) { + stream = dw->stream; + camel_object_ref(stream); } else { stream = camel_seekable_substream_new((CamelSeekableStream *)dw->stream, mps->start1, mps->end1); } camel_stream_reset(stream); mps->content = camel_mime_part_new(); camel_data_wrapper_construct_from_stream((CamelDataWrapper *)mps->content, stream); - camel_object_unref((CamelObject *)stream); + camel_object_unref(stream); return mps->content; case CAMEL_MULTIPART_SIGNED_SIGNATURE: if (mps->signature) |