Commit d228a23c authored by Glenn Morris's avatar Glenn Morris

(mbx_delimit_begin): Also write the current time.

parent 294fa707
2009-02-11 Glenn Morris <rgm@gnu.org>
* movemail.c (mbx_delimit_begin): Also write the current time.
2009-02-10 Glenn Morris <rgm@gnu.org>
* movemail.c (mbx_delimit_begin, mbx_delimit_end): Write mbox rather
......
......@@ -683,6 +683,8 @@ xmalloc (size)
#include <winsock.h>
#endif
#include <pwd.h>
#include <string.h>
#include <time.h>
#define NOTOK (-1)
#define OK 0
......@@ -923,7 +925,16 @@ int
mbx_delimit_begin (mbf)
FILE *mbf;
{
if (fputs ("From movemail\n", mbf) == EOF)
time_t now;
struct tm *ltime;
char fromline[40] = "From movemail ";
now = time (NULL);
ltime = localtime (&now);
strcat (fromline, asctime (ltime));
if (fputs (fromline, mbf) == EOF)
return (NOTOK);
return (OK);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment