Go to file
2017-08-16 18:17:26 +02:00
imap don't print attachments that are text/plain 2017-08-16 17:04:56 +02:00
unreadMail cleanup (millisecond timeout instead of second, unnecessary conditional) 2017-08-14 18:22:50 +02:00
libUnreadMail.go reordering for better structure 2017-08-16 18:17:26 +02:00
README.md correct markdown syntax in readme 2017-08-05 18:56:28 +02:00

libUnreadMail

This library implements barely enough IMAP to read unseen mail. It also contains an example program, that fetches said mails and prints them to stdout.

You can use either Fetch(p) or FetchPlaintext(p) provided in libUnreadMail.go as your entry points. The former fetches the whole message as golangs net/mail, the latter fetches the plain-text parts as strings.

unreadMail

  • go get the libUnreadMail repo
  • enter the unreadMail subfolder
  • go install
  • use $GOPATH/bin/unreadMail -cert $cert -server foobar.com -user spam -passwd eggs to fetch mail
  • the fetched mail will be marked as read