Roll your own
IMAP mailbox into gmail:
- git clone git://github.com/rgrove/larch.git
- git clone git://gitorious.org/trollop/mainline.git
- emerge -av highline
The
larch Copy all folders recursively option gave me some
problems, and since I wanted to do some mapping of folder names to different labels on gmail:
- Make a list of folders on the from server - I used the contents of my thunderbird directory. E.g. something like:
find . -name '*.msf' | sed -e 's/.msf//' -e's/.sbd//g' -e 's/-1//' -e 's/.\///'|sort|uniq
- xemacs above to create a file, with one line for each folder with a simple format: from_format to_label
- Feed into a script something like:
while read from to ; do
ruby -Imainline/lib:larch/lib \
larch/bin/larch \
--from imap://imap.example.foo --from-user XYZ --from-pass OPW \
--to imaps://imap.gmail.com --to-user ABC --to-pass DEF \
--from-folder $from --to-folder $to
done
No comments:
Post a Comment