Marc Perkel wrote:
> If the part second to the end is co com net org then it's 3 part.
>
> warn message = X-Maindomain: \
> ${if
> match{XX${extract{-2}{.}{${domain:$h_From:}}}XX}{XX(co|com|net|org)XX}\
> {${extract{-3}{.}{${domain:$h_From:}}}.${extract{-2}{.}{${domain:$h_From:}}}.${extract{-1}{.}{${domain:$h_From:}}}}\
>
> {${extract{-2}{.}{${domain:$h_From:}}}.${extract{-1}{.}{${domain:$h_From:}}}}\
>
> }
What about com.com? Which is CNet's domain.
Additionally, Japan uses .ne.jp and .or.jp. Not to mention Romania who
uses: .tm.ro, .nt.ro, .nom.ro, .info.ro, .rec.ro, .arts.ro, .firm.ro,
.store.ro and .
www.ro in addition to the .com.ro and .org.ro. Which I'm
sure a few of will collide with "main domains" of dotcoms. On top of
that many other countries have their own different second-level domains
defined.
--
Chris