-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|