lolleela / imapbackup Goto Github PK
View Code? Open in Web Editor NEWThis project forked from krig/imapbackup
IMAP Backup Tool
Home Page: http://tamale.net/imapbackup/
License: BSD 3-Clause "New" or "Revised" License
This project forked from krig/imapbackup
IMAP Backup Tool
Home Page: http://tamale.net/imapbackup/
License: BSD 3-Clause "New" or "Revised" License
IMAP Backup Tool http://github.com/mleonhard/imapbackup http://tamale.net/imapbackup/ This program incrementally backs up IMAP folders to local mbox files. New messages are appended to the folder's mbox file. = Features = * Downloads all IMAP folders * Stores messages in mbox, mbox.gz, or mbox.bz2 * Each folder downloads to its own mbox file, eg. Inbox.Drafts.mbox * Downloads only new messages, appends them to the mbox file * IMAP4 SSL, supporting client and server certificates * Accesses IMAP account in read-only mode. Does not affect message 'seen' status. = Usage = Usage: imapbackup [OPTIONS] -s HOST -u USERNAME [-p PASSWORD] -a --append-to-mboxes Append new messages to mbox files. (default) -y --yes-overwrite-mboxes Overwite existing mbox files instead of appending. -n --compress=none Use one plain mbox file for each folder. (default) -z --compress=gzip Use mbox.gz files. Appending may be very slow. -b --compress=bzip2 Use mbox.bz2 files. Appending not supported: use -y. -f --=folder Specifify which folders use. Comma separated list. -e --ssl Use SSL. Port defaults to 993. -k KEY --key=KEY PEM private key file for SSL. Specify cert, too. -c CERT --cert=CERT PEM certificate chain for SSL. Specify key, too. Python's SSL module doesn't check the cert chain. -s HOST --server=HOST Address of server, port optional, eg. mail.com:143 -u USER --user=USER Username to log into server -p PASS --pass=PASS Prompts for password if not specified. -P Use keyring to store password if available -m BOX --mailbox=BOX Connect to alternate user mailbox (Exchange/Office365) NOTE: mbox files are created in the current working directory. = Example = $ python imapbackup.py -s shevek.tamale.net -u michael -e -f INBOX Password: Connecting to 'shevek.tamale.net' TCP port 993, SSL Logging in as 'michael' Finding Folders: 67 folders Folder INBOX: 1231 messages File INBOX.mbox / WARNING: Message #117 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox - WARNING: Message #269 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox - WARNING: Message #498 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox / WARNING: Message #609 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox | WARNING: Message #976 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox - WARNING: Message #1042 in INBOX.mbox has a malformed Message-Id header. File INBOX.mbox: 1230 messages Downloading 1 new messages to INBOX.mbox: 1.89 KB total, 1.89 KB for largest message Disconnecting $ = Compatibility = Python 2.7 (Tested with 2.7.6) = Changes = 2014-06-04 * Will autodetect Exchange/Office365 Server to skip folders so other servers are not affected if they have the same folder names. 2014-05-30 * Python 2.7 Compatable 2014-05-23 * Added Exceptions for folders 'Contacts/Lync Contacts' and 'Contacts/GAL' to allow backup from Office 365 2013-08-02 * Added option to use keyring - Kristoffer Grönlund https://pypi.python.org/pypi/keyring/ * Reformatted the code to please my sense of aesthetics. 2009-12-12 v1.4c * Use hashlib module instead of deprecated sha module - Ronan Sheth * Added --folders argument - Giuseppe Scrivano * imapbackup disappeared from Rui Carmo's site. This version found at: https://gist.github.com/raw/273418/fe7c59f69ba57c40dde8c8c33d6105f46f458df8/imapbackup.py 2008-12-08 v1.4b * Fetch with BODY.PEEK instead of BODY, to avoid marking Gmail messages as read - Brandon Long (Gmail team) 2007-05-28 v1.4a * SSL support! Can use a private key file and server certificate chain file. Unfortunately, Python's ssl module doesn't check the certificate chain. This needs to be fixed. * You can now specify the port number as part of the server name. Example: imapbackup.py -u user -s mail.com:1234 * Cleaned up code. Used pylint to find code that didn't comply with best practices. 2007-05-27 v1.3b * Fixed bug in error message printout. 2007-05-26 v1.3a * Better support for result of LIST command. Fixes the problem of some folders not getting backed up from Courier IMAPd * Improved usage printout, made parameters more consistent. * Added support for socket._fileobject.recv bugfix on Windows 2007-03-27 v1.2e * By Rui Carmo. Downloaded from: http://the.taoofmac.com/space/Projects/imapbackup http://web.archive.org/web/20071011040436/http://the.taoofmac.com/space/Projects/imapbackup
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.