summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2013-07-28 21:58:27 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-07-28 21:58:27 (GMT)
commit101c63cb5a31370ff61eafe9452748e6546fe89e (patch) (side-by-side diff)
treee31a3a5c07a1234312953a6512fc59e0c8424dca /src/main.c
parent529467a76bf0116dcd045472b18b762830a87cb0 (diff)
downloadmailfromd-101c63cb5a31370ff61eafe9452748e6546fe89e.tar.gz
mailfromd-101c63cb5a31370ff61eafe9452748e6546fe89e.tar.bz2
Provide built-ins for effective handling of large message bodies.
* src/mailfromd.h (body_repl_fd): New opcode. * src/engine.c (run_msgmod): Handle body_repl_fd. * src/gram.y (msgmod_opcode_str): Handle body_repl_fd. * gacopyz/gacopyz.c (gacopyz_replace_body_fn) (gacopyz_replace_body_fd): New functions. (gacopyz_replace_body): Rewrite using gacopyz_replace_body_fn. * gacopyz/gacopyz.h (gacopyz_replace_body_fn) (gacopyz_replace_body_fd): New protos. * src/builtin/body.bi (replbody_fd): New built-in function. * src/builtin/io.bi (open_program_stream_ioe): New static. (open_program_stream): Rewrite via open_program_stream_ioe. (spawn, write_body): New built-in functions. * src/builtin/system.bi (unlink): New built-in function. * NEWS: Update. * doc/functions.texi: Document the new functions.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4b92598..b432627 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1249,6 +1249,7 @@ main(int argc, char **argv)
argpflag(argc, argv), &index, &args);
if (rc)
exit(EX_CONFIG);
+
flush_arguments(&args);
mf_srvcfg_flush();

Return to:

Send suggestions and report system problems to the System administrator.