1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/examples/imapsync_example_darwin.sh
Nick Bebout 1d08afaba6 1.977
2020-04-10 18:15:57 -05:00

50 lines
2.0 KiB
Bash
Executable File

#!/bin/sh
# $Id: imapsync_example_darwin.sh,v 1.1 2019/11/06 09:58:57 gilles Exp gilles $
# imapsync example shell for Mac OS users
# lines beginning with # are just comments
# See http://imapsync.lamiral.info/#doc
# for more details on how to use imapsync.
# Replace below the 6 parameters
# "test1.lamiral.info" "test1" "secret1" "test2.lamiral.info" "test2" "secret2"
# with your own values
# Double quotes are necessary if a value contain one or more blanks.
# value for --host1 is the IMAP source server hostname or IP address
# value for --user1 is the IMAP source user login
# value for --password1 is the IMAP source user password
# value for --host2 is the IMAP destination server hostname or IP address
# value for --user2 is the IMAP destination user login
# value for --password2 is the IMAP destination user password
# Character \ at the end of the first line is essential and means
# "this command continues on the next line". You can add other lines
# but don't forget \ character lasting each line, except the last one.
# Three other options are in this example because they are good to start with
#
# --dry makes imapsync doing nothing, just print what would be done without --dry.
#
# --justfolders does only things about folders (ignore messages). It is good
# to verify the folder mapping is good for you.
#
# --automap guesses folders mapping, for folders like
# "Sent", "Junk", "Drafts", "All", "Archive", "Flagged".
#
# I suggest to start with --automap --justfolders --dry.
# If the folder mapping is not good then add some --f1f2 fold1=fold2
# to fix it.
# Then remove --dry and have a run to create folders on host2.
# If everything goes well so far then remove --justfolders to
# start syncing messages.
./imapsync_bin_Darwin --host1 test1.lamiral.info --user1 test1 --password1 'secret1' \
--host2 test2.lamiral.info --user2 test2 --password2 'secret2' \
--automap --justfolders --dry "$@"