Here's a very brute-force way to identify the addresses in your address
book that might collide. First, I use this (very quick-n-dirty) script
to get the email addresses out of my Thunderbird address book:


#!
ABDIR="c:/Documents and Settings/ables/Application
Data/Thunderbird/Profiles/itj3wnz8.default"

cd "$ABDIR"

cat *.mab | grep @ | sed -e 's/=/ /g' -e 's/)/ /g' |\
  tr '[=()]' '[   ]' | tr ' ' '\n' |\
  tr '[A-Z]' '[a-z]' | egrep '[a-z0-9]@[a-z0-9].*\.[a-z0-9]' | sort -u


I use this not only to make a readable backup of the addresses, but to
export them to text so other scripts I use on email addresses can read
them. I wish Thunderbird would provide an export function! I've
seen an open source program that claims to be able to read the address
book file but I haven't taken the time to try it, mostly because Mozilla
keeps making noise about changing it to something easier to parse!

Run that script and write its output to abook.txt. Then run this script
to get any address that matches any subset of any other address:


#
for i in `cat abook.txt`
do
  n=`grep $i abook.txt | wc -l`
  if [ $n -gt 1 ]; then
    echo `grep $i abook.txt`
  fi
done


Of course, this only works on addresses already in your address book.
But it would give you an easy way to manually check an address before
using it.

These work on MKS Toolkit and Cygwin, so presumably real Unix and Linux,
too. Conversion to Visual Basic is left as an exercise to the reader.  ;-)

-king


_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

Reply via email to