Skip to content

Instantly share code, notes, and snippets.

@poolpOrg
Created August 5, 2023 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poolpOrg/381d3af006ff6aeaa52290a3d8ea08fd to your computer and use it in GitHub Desktop.
Save poolpOrg/381d3af006ff6aeaa52290a3d8ea08fd to your computer and use it in GitHub Desktop.
IMAP plakar importer PoC
$ plakar ls
$ plakar push 'imap://gilles:XXXX@mail.poolp.org'
$ plakar ls
2023-08-05T21:25:41Z 814d2460 764 MB 8m39s imap://gilles:XXXX@mail.poolp.org
$ plakar ls 814d
2023-08-05T21:25:41Z drwx------ root wheel 0 B Archive
2023-08-05T21:25:41Z drwx------ root wheel 0 B Drafts
2023-08-05T21:25:42Z drwx------ root wheel 0 B INBOX
2023-08-05T21:25:42Z drwx------ root wheel 0 B Junk
2023-08-05T21:25:41Z drwx------ root wheel 0 B Sent
2023-08-05T21:25:41Z drwx------ root wheel 0 B Trash
$ plakar ls 814d:Drafts
2023-07-24T18:55:45Z -rwx------ root wheel 1.6 kB 9593
2023-07-24T19:01:33Z -rwx------ root wheel 861 B 9596
2023-07-25T13:56:00Z -rwx------ root wheel 861 B 9607
2023-07-28T09:05:19Z -rwx------ root wheel 861 B 9612
$ plakar ls 814d:Drafts/9596
MIME-Version: 1.0
Date: Mon, 24 Jul 2023 19:01:33 +0000
Content-Type: multipart/alternative;
boundary="--=_RainLoop_447_650505175.1690225293"
X-Mailer: RainLoop/1.16.0
From: gilles@poolp.org
Message-ID: <533654be68d9ae940d1f740070b23200@poolp.org>
Subject:
----=_RainLoop_447_650505175.1690225293
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
----=_RainLoop_447_650505175.1690225293
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html><html><head><meta http-equiv=3D"Content-Type" content=3D"t=
ext/html; charset=3Dutf-8" /></head><body><div data-html-editor-font-wrap=
per=3D"true" style=3D"font-family: arial, sans-serif; font-size: 13px;"><=
br><br><signature></signature></div></body></html>
----=_RainLoop_447_650505175.1690225293--
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment