Go to file
Alexander Weinhold 081a041108 be less retarded about limiting read input
* i.e. don't produce integer overflows...
2018-01-04 20:48:36 +01:00
imap be less retarded about limiting read input 2018-01-04 20:48:36 +01:00
unreadMail pass the name to a password file, don't use pw directly 2017-09-08 14:38:00 +02:00
libUnreadMail.go reordering for better structure 2017-08-16 18:17:26 +02:00
README.md change command line flags according to previous commit 2017-09-08 14:39:34 +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 -pwfile pathToPasswordFile to fetch mail
  • the fetched mail will be marked as read