Pop3 - is erlang library which provides work with pop3 protocol.
- USER/PASS - authorization
- STAT command
- LIST with args command
- Delete message
- RSET
- NOOP
- Retrive message with headers
- Ssl support
- quit :)
First of of all you need to got source code of pop3
from github. Then go to the root dir of pop3
build it:
./rebar compile
Now you can use it:
% start pop3 application
application:start(pop3).
% Some auth data
Data = {"[email protected]", "password", "pop.mail.com", 110},
% Get stat
{ok, MessageCount, Size} = pop3:get_stat(Data),
% Data with message id
Data = {"[email protected]", "password", "pop.mail.com", 110, 5},
% Delete message
ok = pop3:delete(Data2),
% RSET it
pop3:rset(Data),
% end of session
pop3:quit(Data).
- Fork
pop3
repo - Make changes
- Pull request
- Thank you.
- Add APOP
- ADD TOP