Prev | Current Page 1202 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

comr.r.net>#5>+>
The rules in a typical canonify rule set 3 will quickly cut through all this and focus on
the actual address:
R $* $: < $1 > housekeeping <>
R $+ < $* > < $2 > strip excess on left
R < $* > $+ < $1 > strip excess on right
Here, the first rule puts angle braces around everything so that the next two rules will
still work, even if the original address had no angle braces. The second rule essentially
looks for the leftmost < character and throws away everything to the left of that.
Because rules are recursive, it does that until there is only one < left. The third rule
completes the process by looking for the rightmost > and discarding everything after
that.
You can witness this process by running sendmail in -bt rule-testing mode, using
something such as the following. Note that some of the lines that sendmail outputs
are wrapped to fit the page:
% /usr/sbin/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
* We exaggerate for the purpose of this example. Technically, this is not a legal RFC2822 address, but it might
be a legal RFC733 address.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
19.3 The canonify Rule Set 3 | 693
Enter

> -d21.12
> canonify Full Name

Pages:
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214
życzenia katalog stron katalog firm gustowne meble katowice pozycjonowanie