[exim] $recipients and similarly formatted lists vs. colon-d…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Magnus Holmgren
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] $recipients and similarly formatted lists vs. colon-delimited lists
As you know, $recipients is a comma-delimited list of recipient addresses,
where the local part of each address *may* be enclosed in quotes if it
contains spaces, commas, or other strange things. There is code in parse.c
that helps handle such lists of addresses, but it is only available to the
user through the foranyaddress filter condition.

If you think that adding various list-iterating expansion items and conditions
(see http://www.exim.org/bugzilla/show_bug.cgi?id=458) is a good idea, how
can $recipients and similarly formatted lists best be handled in that
context?

1) Extend the generic list syntax so that it can be specified that quoted
strings shall be read without paying attention to any separator characters
within them (in addition to the "<" syntax that lets you change the
separator), or simply make string_nextinlist always do that. However, this is
not sufficient to handle the complex syntax of an RFC 2822 address-list.

2) Add an expansion operator that converts a $recipients-style list into a
list where separators are escaped by doubling them.

3) Add a separate set of expansion conditions/items/operators that iterate
over RFC 2822 address-lists, i.e. among other things implement foranyaddress
as an expansion condition.

Comments, please!

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans