Skip to content

Package pop3 provides an implementation of the Post Office Protocol - Version 3.

License

Notifications You must be signed in to change notification settings

TheCreeper/go-pop3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-pop3

PkgGoDev

Package pop3 provides an implementation of the Post Office Protocol - Version 3.

Example

// 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)
}

About

Package pop3 provides an implementation of the Post Office Protocol - Version 3.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages