summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-24 21:18:18 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-24 21:18:18 +0000
commit966f07ccacdc8b1d13b87e28b1032192ac729fa4 (patch)
treea8ef78d62880fa75186b901c08ba0d7f8532a2a1 /mail
parent5d3f1ff9bcf3f843e9c442810eb7ac9eb5795dcc (diff)
downloadmailutils-966f07ccacdc8b1d13b87e28b1032192ac729fa4.tar.gz
mailutils-966f07ccacdc8b1d13b87e28b1032192ac729fa4.tar.bz2
Initial implementation of a `prog' mailer.
* configure.ac: Enable/disable prog mailer support. * include/mailutils/progmailer.h: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add progmailer.h * include/mailutils/mailutils.h: Include progmailer.h * include/mailutils/registrar.h (MU_PROG_PRIO): New define. (mu_prog_record): New extern. (mu_register_all_mailer_formats): Register mu_prog_record. * include/mailutils/types.hin (mu_progmailer_t): New typedef. * libproto/include/registrar0.h (MU_PROG_SCHEME) (MU_PROG_SCHEME_LEN): New defines. * libproto/mailer/prog.c: New file. * libproto/mailer/Makefile.am (libmu_mailer_la_SOURCES): Add prog.c * libproto/mailer/sendmail.c: Rewrite using mu_progmailer_t * libproto/remote/folder.c (_remote_is_scheme): Remove unused variable. * mailbox/progmailer.c: New file * mailbox/Makefile.am (libmailutils_la_SOURCES): Add progmailer.c * mailbox/acl.c (_expand_aclno): Add a fixme. * mail/send.c (msg_to_pipe): Bugfix: use pclose, instead of fclose. * examples/config/mailutils.schema: Update.
Diffstat (limited to 'mail')
-rw-r--r--mail/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/send.c b/mail/send.c
index a35cc45ba..31e3e14a1 100644
--- a/mail/send.c
+++ b/mail/send.c
@@ -1,6 +1,6 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -666,7 +666,7 @@ msg_to_pipe (const char *cmd, mu_message_t msg)
fprintf (fp, "%s", buffer);
off += n;
}
- fclose (fp);
+ pclose (fp);
}
else
util_error (_("Piping %s failed"), cmd);

Return to:

Send suggestions and report system problems to the System administrator.