Skip to content

Instantly share code, notes, and snippets.

View paloha's full-sized avatar

Pavol Harar paloha

View GitHub Profile
@paloha
paloha / migrate_imap.py
Last active August 17, 2023 10:52 — forked from robulouski/gmail_imap_dump_eml.py
Very simple Python script to download/upload emails from/to an IMAP folder.
#!/usr/bin/env python
#
# Very simple Python script to download/upload emails from/to an IMAP folder.
# This code is based on a simpler version from https://gist.github.com/robulouski/7442321
# This code is released into the public domain.
#
# Paloha 2020
import os
import sys