From 62781e50bfc69cf85be21ec9a18aeb32ef789952 Mon Sep 17 00:00:00 2001 From: pdmef Date: Fri, 29 Apr 2005 09:33:15 +0000 Subject: [PATCH] Rocco Rutte: make hcache (re)store NNTP fraction of envelope (problem reported by Gilles Roy, patch by Thomas Glanzmann) git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@278 e385b8ad-14ed-0310-8656-cc95a2468c6d --- hcache.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hcache.c b/hcache.c index 5e26743..5d7ef9b 100644 --- a/hcache.c +++ b/hcache.c @@ -370,6 +370,13 @@ static unsigned char *dump_envelope (ENVELOPE * e, unsigned char *d, int *off) d = dump_char (e->date, d, off); d = dump_char (e->x_label, d, off); +#ifdef USE_NNTP + d = dump_char (e->newsgroups, d, off); + d = dump_char (e->xref, d, off); + d = dump_char (e->followup_to, d, off); + d = dump_char (e->x_comment_to, d, off); +#endif + d = dump_list (e->references, d, off); d = dump_list (e->in_reply_to, d, off); d = dump_list (e->userhdrs, d, off); @@ -402,6 +409,13 @@ static void restore_envelope (ENVELOPE * e, const unsigned char *d, int *off) restore_char (&e->supersedes, d, off); restore_char (&e->date, d, off); restore_char (&e->x_label, d, off); + +#ifdef USE_NNTP + restore_char (&e->newsgroups, d, off); + restore_char (&e->xref, d, off); + restore_char (&e->followup_to, d, off); + restore_char (&e->x_comment_to, d, off); +#endif restore_list (&e->references, d, off); restore_list (&e->in_reply_to, d, off); @@ -458,6 +472,11 @@ static int generate_crc32 () crc = crc32 (crc, (unsigned char const *) "USE_IMAP", safe_strlen ("USE_IMAP")); #endif + +#ifdef USE_NNTP + crc = + crc32 (crc, (unsigned char const *) "USE_NNTP", safe_strlen ("USE_NNTP")); +#endif return crc; } -- 2.20.1