Skip to content

Instantly share code, notes, and snippets.

View khachuy2705's full-sized avatar
🤒
Out sick

Bui Khac Huy khachuy2705

🤒
Out sick
  • VN
View GitHub Profile
@khachuy2705
khachuy2705 / migrate_imap.py
Last active February 13, 2025 14:22 — forked from paloha/migrate_imap.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
# khachuy2705 2025: Preserve the timestamp of the email message
import os
import sys