Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
tgulacsi committed Jul 15, 2016
1 parent d746cbe commit 2410134
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# imapclient
imapclient is a helper library for speaking with IMAP4rev1 servers:
list and select mailboxes, search for mails and download them.

# imapdump
./cmd/imapdump is a usable example program for listing mailboxes and downloading mail in tar format.

## Install

go get github.com/tgulacsi/imapclient/cmd/imapdump

## Usage

imapdump -H imap.gmail.com -p 993 -U myloginname -P mysecretpassword tree %

will list all mailboxes

imapdump -H imap.gmail.com -p 993 -U myloginname -P mysecretpassword list -a Trash

will list the contents (UID, size and subject) of the Trash folder, even seen mails,

imapdump -H imap.gmail.com -p 993 -U myloginname -P mysecretpassword save -m Trash 3602

will dump the message from Trash folder with UID of 3602,

imapdump -H imap.gmail.com -p 993 -U myloginname -P mysecretpassword save -m Trash -o trash.tar

will save all the mails under Trash into trash.tar.

0 comments on commit 2410134

Please sign in to comment.