Subject: alias conversions

From: Jeff Traigle <[email-masked]>
Date: Thu, 10 Feb 1994 16:42:22 -0500 (EST)

Does anybody happen to have conversion tools already written? I'm 
attempting to migrate one of my sites to IMAP, but I can see that I might 
meet with some resistence since the aliases aren't in compatible formats. 
Particular conversions would need to be from .mailrc and from elm 
formats.

--
+-----------------------------------------------------------------------------+
|                                 Jeff Traigle                                |
|                             Systems Administrator                           |
+-----------------------------------------------------------------------------+
|  University of Michigan               University of Michigan                |
|  College of Pharmacy                  Biophysics Research Division          |
|  Pharmacy Building, Room 1033         Chemistry Building, Room 3080         |
|  Ann Arbor  MI 48109                  Ann Arbor  MI 48109                   |
+-----------------------------------------------------------------------------+
|  [email-masked]                    Pager: (313) 617-8793                 |
+-----------------------------------------------------------------------------+

---

From: Joel Ness <[email-masked]>
Date: Fri, 11 Feb 94 08:15:12 -0600

>   Does anybody happen to have conversion tools already
>   written? I'm  attempting to migrate one of my sites to
>   IMAP, but I can see that I might  meet with some
>   resistence since the aliases aren't in compatible
>   formats.  Particular conversions would need to be from
>   .mailrc and from elm  formats.
>   
>   --
>   |                                 Jeff Traigle
>   |

Here's a little script one of our UNIX folks worked up to handle conversion of
elm aliases to pine alias form (pretty simple syntax substitution). If you
execute it multiple times it will keep adding another set of your elm aliases to
your pine addressbook, but Pine seems to handle that all right.

#!/bin/csh
#!/bin/csh -vx
# convert elm aliases.text to pine addressbook
# Greg Gustafson
# UMD Information Services
# January 1993
#
if -r $HOME/.elm/aliases.text then
   if -e $HOME/.addressbook then
      set n=1
      while (-e $HOME/.addressbook$n)
         @ n++
      end
      mv $HOME/.addressbook $HOME/.addressbook$n
   endif
   ex - $HOME/.elm/aliases.text << ---
%s/ = / /
%s/ = / (
%s/\$/)/
:w $HOME/.addressbook
---
    set n=`cat $HOME/.addressbook | wc -l`
    echo $n elm aliases converted to pine addresses
else
   echo no Elm aliases found
endif

_________________________
Joel Ness
UMD Information Services
[email-masked]
(218) 726-8841