* On 13 Jul 2016, Matthias Apitz wrote: > > Hi, > > Is there some function in mutt's source which validates e-mail addrs? > Thanks
Validates in what sense? There are parse_address and (more broadly) rfc822_parse_adrlist, which will reject or complete certain kinds of malformations based on RFC (822, 2822, 5322, etc). But RFC 5322 et al. are the only things mutt cares about, address-wise. Nothing in mutt tries to anticipate what kind of junk ICANN is sunrising next month, or what ISO CC split from another ISO CC last year, or whether a given RHS is a valid DNS name or has an A/CNAME/MX record, etc. In short, mutt never makes any effort to see that an address is deliverable; only that it conforms the address format specification. At higher level, DNS validity in an email address is not mutt's concern. Mutt could be running within an intranet in which global DNS is not visible, and where no domain assumptions can be verified. Since mutt assumes an upstream SMTP relay (either via $sendmail or via built-in SMTP), it can be used to send to a wide variety of addresses that mutt itself knows nothing about; these are presumed to be understood by the smtp relay. So mutt really has no interest in validation of an address beyond the RFC. It never really looks at your addresses beyond that. At an even higher level, the only method the internet supports to validate an address is to send it email and see what happens. -- David Champion • d...@bikeshed.us