int type_ok (CT, int);
void flush_errors (void);
-/* mhstoresbr.c */
-typedef struct mhstoreinfo *mhstoreinfo_t;
-mhstoreinfo_t mhstoreinfo_create(CT *, char *, const char *, int, int);
-void mhstoreinfo_free(mhstoreinfo_t);
-void store_all_messages (mhstoreinfo_t);
-
/* mhcachesbr.c */
void cache_all_messages (CT *);
* check if message is coming from file
*/
if (file) {
- if (!(cts = (CT *) calloc ((size_t) 2, sizeof(*cts))))
+ if (!(cts = (CT *) mh_xcalloc ((size_t) 2, sizeof(*cts))))
adios (NULL, "out of memory");
ctp = cts;
done (1);
seq_setprev (mp); /* set the previous-sequence */
- if (!(cts = (CT *) calloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
+ if (!(cts = (CT *) mh_xcalloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
adios (NULL, "out of memory");
ctp = cts;
mhstoreinfo_free (info);
}
+ /* If reading from a folder, do some updating */
+ if (mp) {
+ context_replace (pfolder, folder);/* update current folder */
+ seq_setcur (mp, mp->hghsel); /* update current message */
+ seq_save (mp); /* synchronize sequences */
+ context_save (); /* save the context file */
+ }
+
/*
* Cache the message content
*/
* Show the message content
*/
if (showsw)
- show_all_messages (cts, 0, 0, 0);
+ show_all_messages (cts, 0, 0, 0, NULL);
/* Now free all the structures for the content */
for (ctp = cts; *ctp; ctp++)
free (cts);
cts = NULL;
- /* If reading from a folder, do some updating */
- if (mp) {
- context_replace (pfolder, folder);/* update current folder */
- seq_setcur (mp, mp->hghsel); /* update current message */
- seq_save (mp); /* synchronize sequences */
- context_save (); /* save the context file */
- }
-
done (0);
return 1;
}