summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-11-30 16:13:10 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-11-30 16:13:10 +0200
commitf5374bc2ff9bb95dd94668eb8a5fb54c88c30f22 (patch)
tree0b4b9f6b459705abeacfb1e31c55f8eeef3225fe /examples
parentedbe6c56fd36741c92684b742acab5f1585f2e9b (diff)
downloadmailutils-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.c5
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;
}
-

Return to:

Send suggestions and report system problems to the System administrator.