Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecreeper/go-pop3
Package pop3 provides an implementation of the Post Office Protocol - Version 3.
https://github.com/thecreeper/go-pop3
go pop pop3 post-office-protocol
Last synced: about 1 month ago
JSON representation
Package pop3 provides an implementation of the Post Office Protocol - Version 3.
- Host: GitHub
- URL: https://github.com/thecreeper/go-pop3
- Owner: TheCreeper
- License: bsd-2-clause
- Created: 2015-03-05T20:58:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-26T11:30:28.000Z (over 3 years ago)
- Last Synced: 2024-08-03T23:28:33.032Z (5 months ago)
- Topics: go, pop, pop3, post-office-protocol
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 20
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-pop3
[![PkgGoDev](https://pkg.go.dev/badge/github.com/TheCreeper/go-pop3)](https://pkg.go.dev/github.com/TheCreeper/go-pop3)
Package pop3 provides an implementation of the
[Post Office Protocol - Version 3](https://www.ietf.org/rfc/rfc1939.txt).## Example
```Go
// Create a connection to the server
c, err := pop3.DialTLS("pop3.riseup.net:993")
if err != nil {
log.Fatal(err)
}
defer c.Quit()// Authenticate with the server
if err = c.Auth("username", "password"); err != nil {
log.Fatal(err)
}// Print the UID of all messages in the maildrop
messages, err := c.UidlAll()
if err != nil {
log.Fatal(err)
}
for _, v := range messages {
log.Print(v.UID)
}
```