summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-01-16 13:07:38 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-01-16 13:07:38 +0000
commit6eaeafb7265a34d600a31f3c88d7cc3e96c2a5d3 (patch)
tree8334d5d72bfef0912f3c94d48973e7260389b50d
parent5bd554df96ce15e83a82d9fa3c38ca660423ab69 (diff)
downloadmailutils-6eaeafb7265a34d600a31f3c88d7cc3e96c2a5d3.tar.gz
mailutils-6eaeafb7265a34d600a31f3c88d7cc3e96c2a5d3.tar.bz2
Update
-rw-r--r--ChangeLog20
-rw-r--r--NEWS13
-rw-r--r--doc/texinfo/programs.texi17
3 files changed, 47 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b8036b3b9..121a5ee24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2006-01-16 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * NEWS: Updated
+ * THANKS: Add Walter Neumann
+ * doc/texinfo/programs.texi: Document inplacealiases and
+ recursealiases.
+ * mail/alias.c (alias_expand): Recursively expand aliases if
+ recursealiases is set.
+ * mail/mail.c (default_setup): Provide defaults for inplacealiases
+ and recursealiases.
+ * mail/mail.h (is_address_field): New prototype.
+ * mail/send.c (compose_header_set): Check for valid arguments at
+ the beginning of the function (value can be NULL, e.g. if the user hit
+ C-D at Cc: prompt).
+ Call util_merge_addresses() only if inplacealiases is set. Expand
+ aliases before calling it.
+ * mail/util.c (is_address_field): Remove static qualifier.
+ (util_header_expand): Expand aliases unless inplacealiases is set.
+ * mail/testsuite/mail/send.exp: Set inplacealiases.
+
2005-12-14 Sergey Poznyakoff <gray@gnu.org.ua>
* lib/mu_dbm.c: Allow specifying full file name (including the
diff --git a/NEWS b/NEWS
index a0b5e07bd..0577cf62d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
-GNU mailutils NEWS -- history of user-visible changes. 2005-10-30
-Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+GNU mailutils NEWS -- history of user-visible changes. 2006-01-16
+Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
See the end of file for copying conditions.
Please send mailutils bug reports to <bug-mailutils@gnu.org>.
@@ -21,8 +21,17 @@ obtain loader options (which is recommended, anyway).
* mail: New option --exec (-E) allows to execute arbitrary mail commands
before opening the mailbox. Any number of --exec options can be given.
+** New variables `recursivealiases' and `inplacealiases' control the way
+mail aliases are expanded. When `recursivealiases' is set, aliases
+will be expanded recursively. When `inplacealiases' is set, alias
+expansion takes place before entering compose mode (by default, it is
+carried out when exiting compose mode, right before sending the
+message). The default is `set recursivealiases noinplacealiases'.
+
* Bugfixes:
** mail: Fix handling of conditional expressions
+** mail: When several recipients were specified, no alias expansion took
+place.
Version 0.6.91:
diff --git a/doc/texinfo/programs.texi b/doc/texinfo/programs.texi
index 57d32b4be..cdc31a366 100644
--- a/doc/texinfo/programs.texi
+++ b/doc/texinfo/programs.texi
@@ -1,5 +1,5 @@
@c This is part of the GNU Mailutils manual.
-@c Copyright (C) 1999,2000,2001,2002,2003,2004,2005
+@c Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006
@c Free Software Foundation, Inc.
@c See file mailutils.texi for copying conditions.
@comment *******************************************************************
@@ -1999,6 +1999,15 @@ composed.
String used by the @code{~m} tilde escape for indenting quoted messages.
+@item inplacealiases
+@*Type: Boolean
+@*Default: False
+
+If set, @command{mail} will expand aliases in the address header field
+before entering send mode (@pxref{Composing Mail}). By default, the
+address header fields are left intact while composing, the alias
+expansion takes place immediately before sending message.
+
@item keepsave
@*Type: Boolean.
@*Default: False.
@@ -2132,6 +2141,12 @@ configuration file upon startup. See @ref{Mail Configuration Files}.
When set, any outgoing message will be saved to the named file.
+@item recursivealiases
+@*Type: Boolean
+@*Default: True
+
+When set, @command{mail} will expand aliases recursively.
+
@item regex
@*Type: Boolean.
@*Default: True.

Return to:

Send suggestions and report system problems to the System administrator.