Correcting Tags

After defocusing, the final rule set 4 might need to convert some addresses back to their original forms. For example, consider UUCP addresses at a site that still uses UUCP to transfer mail. They entered the canonify rule set 3 in the form host!host!user. The canonify rule set 3 rewrote them in the more normal user@host form, and added a .uucp to the end of the host. The following rule in the final rule set 4 converts such normalized UUCP addresses back to their original form so that they can be sent using UUCP software:

R $+ @ $-.uucp         $2 ! $1                  u@h.UUCP => h!u

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.