unsigned long uid_validity)
{
unsigned char *d = NULL;
+ HEADER nh;
*off = 0;
d = lazy_malloc(sizeof (validate));
d = dump_int(h->crc, d, off);
lazy_realloc(&d, *off + sizeof (HEADER));
+ memcpy(&nh, header, sizeof (HEADER));
+
+ /* some fields are not safe to cache */
+ nh.tagged = 0;
+ nh.changed = 0;
+ nh.threaded = 0;
+ nh.recip_valid = 0;
+ nh.searched = 0;
+ nh.matched = 0;
+ nh.collapsed = 0;
+ nh.limited = 0;
+ nh.num_hidden = 0;
+ nh.recipient = 0;
+ nh.attach_valid = 0;
+ nh.path = NULL;
+ nh.tree = NULL;
+ nh.thread = NULL;
+#ifdef MIXMASTER
+ nh.chain = NULL;
+#endif
+#if defined USE_POP || defined USE_IMAP
+ nh.data = NULL;
+#endif
+
memcpy(d + *off, header, sizeof (HEADER));
*off += sizeof (HEADER);