* Andrew Smallbone wrote:
> In the UK some mail addresses get reversed (I think this is something
> todo with passing from Janet to the Internet or Vice Versa) i.e:
>       [EMAIL PROTECTED]
> to    [EMAIL PROTECTED]

> These are the same addresses so I don't want to be asked if I want to
> add `[EMAIL PROTECTED]' to `[EMAIL PROTECTED]' everytime I get mailed (or
> have redundant mail names in the net field).

> How can I do this? (I still would like to be informed of other types
> of address changes) Could someone atleast point to the code that does
> the searching (I couldn't find it)..

I think the correct answer to this stuff is `start looking for jobs in
a sensible country'.  Well, I've been doing that, but in the meantime
you have to hack.  I have patches to bbdb itself which allow it to
call a matching fn, and a fn which matches addresses both ways round.
I can send you these if you want (but it will take me a while to find
them perhaps).

This is half the problem: the other half is to prevent the UK crud
from getting into the database.  I haven't really solved this but the
correct soln is one of (1) beat your system people over the head until
they fix sendmail to present addresses in the right order -- it's
almost certainly the case that QMW delivers mail over the internet but
keeps this crud for old-times' sake (at least that's what we do).  (2)
rely on the fact that sendmail canonicalises addresses, and call it
(/usr/lib/sendmail -bt, then 0 <addr>) to canonicalise the addresses
before you put them in the db (more hacks to bbdb, + you have to be on
the machine that delivers mail), (3) invent some horrid script which
does (some of) what sendmail does by hacky heuristics.

Just thinking about UK mail makes me feel quite ill, I think I'll gpo
and lie down now.

--tim

Reply via email to