diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-30 16:13:10 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-30 16:13:10 +0200 |
commit | f5374bc2ff9bb95dd94668eb8a5fb54c88c30f22 (patch) | |
tree | 0b4b9f6b459705abeacfb1e31c55f8eeef3225fe /examples | |
parent | edbe6c56fd36741c92684b742acab5f1585f2e9b (diff) | |
download | mailutils-f5374bc2ff9bb95dd94668eb8a5fb54c88c30f22.tar.gz mailutils-f5374bc2ff9bb95dd94668eb8a5fb54c88c30f22.tar.bz2 |
send: fix draftfolder support; add testsuite
* examples/mta.c (mta_send): Don't print trailing spaces instead of
empty lines.
* mh/send.c: Redo draftfolder support.
(read_mts_profile): If MTSTAILOR environment variable is set,
it names the mtstailor file to use instead of the standard ones.
* mh/tests/send.at: New file.
* mh/tests/Makefile.am (TESTSUITE_AT): Add send.at
* mh/tests/testsuite.at (MH_SETUP): Set MTSTAILOR.
(MH_MTSTAILOR): New macro
Include send.at
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mta.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/mta.c b/examples/mta.c index 15a0de7ec..31b76d182 100644 --- a/examples/mta.c +++ b/examples/mta.c @@ -348,7 +348,9 @@ mta_send (mu_message_t msg) { if (newline) { - fprintf (diag, "%4lu: ", (unsigned long) line); + fprintf (diag, "%4lu:", (unsigned long) line); + if (buffer[i] != '\n') + fputc (' ', diag); newline = 0; } fputc (buffer[i], diag); @@ -837,4 +839,3 @@ mta_smtp (int argc, char **argv) return 0; } - |