aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-07-13 05:24:26 +0800
committerChris Toshok <toshok@src.gnome.org>2000-07-13 05:24:26 +0800
commit77e647292603294f23999183578d8cc276f3d402 (patch)
tree88ecbac88657f92ed7792da5ffc133b3d288bb58 /camel/camel-mime-parser.c
parent540e1d7671ec843c2db2d03810d948f879ac1bfc (diff)
downloadgsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar.gz
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar.bz2
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar.lz
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar.xz
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.tar.zst
gsoc2013-evolution-77e647292603294f23999183578d8cc276f3d402.zip
get the article num out of our uid and mark it read in the newsrc.
2000-07-12 Chris Toshok <toshok@helixcode.com> * providers/nntp/camel-nntp-folder.c (nntp_folder_set_message_flags): get the article num out of our uid and mark it read in the newsrc. (nntp_folder_get_message): get the message id out of the uid to fetch the article. * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): the uid is now <article-num>,<messageid> (get_HEAD_headers): same. * camel-mime-parser.c (folder_scan_step): go to HSCAN_MESSAGE state when ct->subtype is "news" as well as "rfc822". this makes attachments of type "message/news" display properly. svn path=/trunk/; revision=4121
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index c8dc4fb61c..9e49effa6c 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -288,7 +288,7 @@ static char *states[] = {
"HSCAN_HEADER", /* toplevel header */
"HSCAN_BODY", /* scanning body of message */
"HSCAN_MULTIPART", /* got multipart header */
- "HSCAN_MESSAGE", /* rfc822 message */
+ "HSCAN_MESSAGE", /* rfc822/news message */
"HSCAN_PART", /* part of a multipart */
"<invalid>",
@@ -1557,6 +1557,7 @@ tail_recurse:
}
} else if (!strcasecmp(ct->type, "message")) {
if (!strcasecmp(ct->subtype, "rfc822")
+ || !strcasecmp(ct->subtype, "news")
/*|| !strcasecmp(ct->subtype, "partial")*/) {
type = HSCAN_MESSAGE;
}