imapsync

IMAP-Sync

von:https://blog.wydler.eu/2020/02/05/imapsync-installieren-und-nutzen/

apt update
apt -y upgrade
apt install -y mc vnstat htop iftop 
apt install -y git make gcc
apt install -y apt-file cpanminus libc6-dev libssl-dev
apt install -y libperl-dev zlib1g-dev libnet-ssleay-perl

https://imapsync.lamiral.info/INSTALL.d/INSTALL.Ubuntu.txt

apt-get install  \
libauthen-ntlm-perl     \
libclass-load-perl      \
libcrypt-ssleay-perl    \
libdata-uniqid-perl     \
libdigest-hmac-perl     \
libdist-checkconflicts-perl \
libencode-imaputf7-perl     \
libfile-copy-recursive-perl \
libfile-tail-perl       \
libio-compress-perl     \
libio-socket-inet6-perl \
libio-socket-ssl-perl   \
libio-tee-perl          \
libmail-imapclient-perl \
libmodule-scandeps-perl \
libnet-dbus-perl        \
libnet-ssleay-perl      \
libpar-packer-perl      \
libreadonly-perl        \
libregexp-common-perl   \
libsys-meminfo-perl     \
libterm-readkey-perl    \
libtest-fatal-perl      \
libtest-mock-guard-perl \
libtest-mockobject-perl \
libtest-pod-perl        \
libtest-requires-perl   \
libtest-simple-perl     \
libunicode-string-perl  \
liburi-perl             \
libtest-nowarnings-perl \
libtest-deep-perl       \
libtest-warn-perl       \
make                    \
time                    \
cpanminus
mount -o remount,exec /tmp
cpanm App::cpanminus Authen::NTLM CGI Compress::Zlib Crypt::OpenSSL::RSA Data::Dumper Data::Uniqid Dist::CheckConflicts Encode Encode::IMAPUTF7 File::Copy::Recursive File::Tail IO::Socket::INET IO::Socket::INET6 IO::Socket::SSL IO::Tee JSON JSON::WebToken LWP::UserAgent Mail::IMAPClient Module::ScanDeps PAR::Packer Pod::Usage Readonly Regexp::Common Sys::MemInfo Term::ReadKey Test::MockObject Test::More Test::Pod Unicode::String
mount -o remount,noexec /tmp
cd /usr/local/src
git clone https://github.com/imapsync/imapsync.git
cd imapsync
make install

Ab hier ist dann wohl die ausführbare Datei vorhanden schon.

imapsync -testslive

BZW:

cd /usr/local/src/imapsync
./imapsync -testslive

https://github.com/joeyates/imap-backup

brew install imap-backup
mv mail_.de/* old-mail_.de/*
mv mail_.de old-mail_.de
nano .imap-backup/config.json
imap-backup
imap-backup setup

Befehl um zwischen dem Speicherstand der abgeändert wurde zu dem alten zurück zu gehen:

imap-backup migrate old-mail@.de mail@.de
{
  "version": "2.2",
  "accounts": [
    {
      "username": "old-mail@.de",
      "password": "password",
      "local_path": "/Users/fh/.imap-backup/old-mail_.de",
      "folders": [

      ],
      "server": "mail.server.de",
      "multi_fetch_size": 1
    },
    {
      "username": "mail@.de",
      "password": "passwort",
      "local_path": "/Users/fh/.imap-backup/mail_.de",
      "folders": [

      ],
      "server": "mail.server.de",
      "multi_fetch_size": 1
    }
  ],
  "download_strategy": "delay_metadata"
}
  • imapsync.txt
  • Zuletzt geändert: 2023/12/28 16:00
  • von Fabian Horst