Skip to content
/ imaptar Public

utility to dump imap mailbox to a tarfile (maildir format)

License

Notifications You must be signed in to change notification settings

XS4ALL/imaptar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imaptar

Imaptar is a utility to dump an entire IMAP mailbox, INBOX and all folders, in maildir format to a tar file.

Usage:

Usage: imaptar <flags>

Flags:
    -s, --server <name>   IMAPS server name
    -u, --user <name>     username
    -t, --tar <file>      tar output filename

Optional flags:
    -p, --port <port>     IMAPS server port (default 993)
    -P, --pass <pass>     password
    -E, --envpass VAR     get password from environment var $VAR
    -z, --gzip            compress the output

If you do not supply the -P or -E option, you will be prompted for the password.

Example

export IMAPPASS="TrustNo1"
imaptar -s imap.xs4all.nl -u mikevs -E IMAPPASS -z -t maildir.tar.gz

BUGS

Only works on IMAP servers where "/" is the folder seperator.

Building

You need to have the 'gó' compiler installed, ofcourse. Then:

$ go get
$ go build

Building a debian package

If you are running debian or ubuntu and you would like to have a .deb format package, run:

$ dpkg-buildpackage -rfakeroot -us -uc

About

utility to dump imap mailbox to a tarfile (maildir format)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages