aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-filter-canon.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-28 07:37:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-28 07:37:34 +0800
commitb284896c8c561ff8d431de984725da3c01bfea1e (patch)
treef4625235ac5cb3cde649e1627522db702a80655b /camel/camel-mime-filter-canon.c
parent9abf82080cff93489d63cf6b0b929782b190c2fc (diff)
downloadgsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar.gz
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar.bz2
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar.lz
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar.xz
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.tar.zst
gsoc2013-evolution-b284896c8c561ff8d431de984725da3c01bfea1e.zip
Add a 'flushed' state variable to the private struct. (do_read): Set
2003-02-27 Jeffrey Stedfast <fejj@ximian.com> * camel-stream-filter.c: Add a 'flushed' state variable to the private struct. (do_read): Set p->flushed to TRUE after we call camel_mime_filter_complete() on all the filters. (do_reset): Set p->flushed to FALSE. (do_eos): Make sure the filters have been flushed before returning that the stream is at EOS. * camel-mime-filter-canon.c (complete): Don't add a eol - otherwise we will fail to verify some mutt signatures that do not have a blank line before the boundary line (and note that the last \n before the boundary really belongs to the boundary anyway) so #if 0 this code out for now. svn path=/trunk/; revision=20096
Diffstat (limited to 'camel/camel-mime-filter-canon.c')
-rw-r--r--camel/camel-mime-filter-canon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/camel-mime-filter-canon.c b/camel/camel-mime-filter-canon.c
index a72f01c77f..43337ae856 100644
--- a/camel/camel-mime-filter-canon.c
+++ b/camel/camel-mime-filter-canon.c
@@ -195,6 +195,12 @@ complete(CamelMimeFilter *f, char *in, size_t len, size_t prespace, char **out,
while (o>starto && (o[-1] == ' ' || o[-1] == '\t' || o[-1]=='\r'))
o--;
}
+
+#if 0
+ /* Note: #if 0'd out because we do not want to add a
+ * \r\n for PGP/MIME verification if it isn't there in
+ * the original content stream */
+
/* check end of line canonicalisation */
if (o>starto) {
if (flags & CAMEL_MIME_FILTER_CANON_CRLF) {
@@ -208,6 +214,7 @@ complete(CamelMimeFilter *f, char *in, size_t len, size_t prespace, char **out,
/* and always finish with an eol */
*o++ = '\n';
+#endif
*outlen = o - *out;