/*
* mhstoresbr.c -- routines to save/store the contents of MIME messages
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
static int
store_content (CT ct, CT p)
{
- int appending = 0, msgnum;
+ int appending = 0, msgnum = 0;
int is_partial = 0, first_partial = 0;
int last_partial = 0;
char *cp, buffer[BUFSIZ];
* Get storage formatting string.
*
* 1) If we have storeproc defined, then use that
- * 2) Else check for a mhn-store-<type>/<subtype> entry
- * 3) Else check for a mhn-store-<type> entry
+ * 2) Else check for a mhstore-store-<type>/<subtype> entry
+ * 3) Else check for a mhstore-store-<type> entry
* 4) Else if content is "message", use "+" (current folder)
* 5) Else use string "%m%P.%s".
*/
char *tmpfilenam, *folder;
/* Store content in temporary file for now */
- tmpfilenam = m_scratch ("", invo_name);
+ tmpfilenam = m_mktemp(invo_name, NULL, NULL);
ct->c_storage = add (tmpfilenam, NULL);
/* Get the folder name */