Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d228a23c
Commit
d228a23c
authored
Feb 11, 2009
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mbx_delimit_begin): Also write the current time.
parent
294fa707
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
lib-src/ChangeLog
lib-src/ChangeLog
+4
-0
lib-src/movemail.c
lib-src/movemail.c
+12
-1
No files found.
lib-src/ChangeLog
View file @
d228a23c
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
...
...
lib-src/movemail.c
View file @
d228a23c
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment