summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-02-16 11:41:47 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-02-16 11:49:24 +0200
commit375ffa14056f4165c9674fa94c243bd632c43742 (patch)
treeb4503acdd526c1d74ea79aaeb5f1df62efabe16e /NEWS
parentefa513048a74fca2e3ab1b16cc927f8331347f75 (diff)
downloadmailutils-375ffa14056f4165c9674fa94c243bd632c43742.tar.gz
mailutils-375ffa14056f4165c9674fa94c243bd632c43742.tar.bz2
ali: executable file inclusion.
The "< file" construct tests if file is executable and begins with the shell interpreter magic (#!/ or #! /). If so, this file is executed and its output is collected. This provides a way for building aliases on the fly. * mh/mh_alias.l (buffer_ctx) <exec_p>: New member. (exec_p): New static variable. (push_source): If the file is executable and begins with the "#!/" magic, run it and collect its output. (pop_source): Use exec_p to decide how to close the file. * mh/tests/ali.at: Test executable file inclusion. * NEWS: Update.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS10
1 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 94cc1b71f..e2ea71dfa 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU mailutils NEWS -- history of user-visible changes. 2012-11-12
+GNU mailutils NEWS -- history of user-visible changes. 2013-02-16
Copyright (C) 2002-2012 Free Software Foundation, Inc.
See the end of file for copying conditions.
@@ -203,6 +203,14 @@ option:
"yes", the mailbox will be truncated after successful processing.
If BOOL is "no", the source mailbox will not be truncated.
+** MH aliases
+
+The "< FILE" construct has been extended to allow for building the
+list of aliases on the fly. If FILE is an executable file and its
+first line begins with a shell interpreter magic (#!/ or #! /), then
+instead of being included, such file is run using "/bin/sh -c", its
+output is collected and included in the aliases.
+
** mailutils-config is deprecated.
Use `mu cflags' and `mu ldflags' instead. The mailutils-config is

Return to:

Send suggestions and report system problems to the System administrator.