Skip to content

rocko83/gmail_archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmail_archive

This tool sync your e-mail from google or any other service providing IMAP protocol.

It can just sync or sync and delete (move).

It'll save your mails in files *.iml and has a sqlite3 database with index about every synced mail.

TODO

  • database
  • excel
  • htlm build
  • multi thread
  • flask web interface

Links

Examples

python run.py --cred etc/credentials.json --output_dir archive_mail  --search 'ALL'
python run.py --cred etc/credentials.json --output_dir archive_mail  --search '(FROM "mail@from.com")'  --delete
python run.py --cred etc/credentials.json --output_dir archive_mail  --search '(UID "<0100018826430649-4c257cec-45af-43d4-9161-34492ebe33bd-000000@email.amazonses.com>")'  --delete
python run.py --cred etc/credentials.json --output_dir archive_mail  --search '(NOT SINCE "1-Jan-2019")'
python run.py --cred etc/credentials.json --output_dir archive_mail  --search '(HEADER Message-ID "<0100018826430649-4c257cec-45af-43d4-9161-34492ebe33bd-000000@email.amazonses.com>")' 

Know Bugs

  • If LABEL DATE do not have Timezone attached will set GMT by code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages