X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhstoresbr.c;h=58ed5becdcedc021e7775d36878f1d093129640a;hb=8a87f7b5fd5622dcde0fc4b48d93157616b496f0;hp=1c05a42d0fd0953e77aa240207702ccd3b742ea1;hpb=63298d0f1870b5df16ac8664494e5a24b224dfc5;p=mmh diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 1c05a42..58ed5be 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -2,8 +2,6 @@ /* * 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. @@ -14,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -51,7 +48,6 @@ typedef int (*qsort_comp) (const void *, const void *); /* mhmisc.c */ int part_ok (CT, int); int type_ok (CT, int); -int make_intermediates (char *); void flush_errors (void); /* mhshowsbr.c */ @@ -482,7 +478,7 @@ ct_compar (CT *a, CT *b) 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]; @@ -560,7 +556,7 @@ store_content (CT ct, CT p) 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 */