Linux command
imapsync 命令
网络
需要网络或远程资源。
常用示例
Sync mailboxes
imapsync --host1 [src] --user1 [user] --password1 [pass] --host2 [dst] --user2 [user] --password2 [pass]
Dry run
imapsync --dry --host1 [src] --user1 [user] ...
Exclude folders
imapsync --exclude "Trash|Spam" --host1 [src] ...
SSL connections
imapsync --ssl1 --ssl2 --host1 [src] ...
Delete source after sync
imapsync --delete1 --host1 [src] ...
说明
imapsync synchronizes IMAP mailboxes between servers. It copies emails, folders, and flags from source to destination. The tool handles mail migrations and backups. It supports incremental sync, filtering, and various authentication methods.
参数
- --host1 _HOST_
- Source IMAP server.
- --user1 _USER_
- Source username.
- --password1 _PASS_
- Source password.
- --host2 _HOST_
- Destination server.
- --user2 _USER_
- Destination username.
- --dry
- Dry run mode.
- --ssl1, --ssl2
- Use SSL.
- --help
- Display help information.
FAQ
What is the imapsync command used for?
imapsync synchronizes IMAP mailboxes between servers. It copies emails, folders, and flags from source to destination. The tool handles mail migrations and backups. It supports incremental sync, filtering, and various authentication methods.
How do I run a basic imapsync example?
Run `imapsync --host1 [src] --user1 [user] --password1 [pass] --host2 [dst] --user2 [user] --password2 [pass]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --host1 _HOST_ do in imapsync?
Source IMAP server.