diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
| commit | 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch) | |
| tree | 3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2021/Mbsync-push.html | |
update
Diffstat (limited to 'articles/2021/Mbsync-push.html')
| -rwxr-xr-x | articles/2021/Mbsync-push.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/articles/2021/Mbsync-push.html b/articles/2021/Mbsync-push.html new file mode 100755 index 0000000..2d5894b --- /dev/null +++ b/articles/2021/Mbsync-push.html @@ -0,0 +1,34 @@ +<!doctype html> +<html lang="EN"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/style.css"> + <title>Bloggings</title> + </head> + <body> + <header> + <h1>Bloggings</h1> + <a href="/index.php">Back</a> + + </header> + +<main> +<article> +<h2>Mbsync push</h2> +<h3>2021-05-04</h3> +<p>J'ai bêtement copié mon .mbsyncrc sur mon nouvel ordinateur portable avant de copier le dossier .mail. Le résultat a été que mbsync a supprimé tout le courrier sur mon serveur +IMAP.</p> +<p>J'ai donc dû tout repousser depuis le dossier .mail de mon ancien ordinateur portable. Heureusement, il y a un bon guide en ligne +<a href="https://aaronweb.net/blog/2014/11/migrating-mail-between-imap-servers-using-mbsync/">ici</a></p> +<p>L'astuce consiste à remettre à zéro le dossier .mail local en supprimant toutes les informations précédentes de mbsync.</p> +</p>retirer toutes les fichiers .mbsyncstate et .uidvalidity:</p> +<code>find . -type f -name '.??*' -delete</code> +<p>Ensuite retirer les identifiants mbsync des noms des fichiers mail:</p> +<code>find . -type f -name '*U=*' | { while read f; do mv "$f" "`echo $f | sed -e 's/,U=[0-9]*//'`"; done }</code> +<p>J'ai ensuite supprimé tous les dossiers sur mon serveur IMAP et j'ai procédé à leur restauration avec un push mbsync.</p> +</article> +</main> +<footer> +<p> </p><p>§</p></footer> +</body></html> |
