ruby / net-pop

This library provides functionality for retrieving email via POP3, the Post Office Protocol version 3. For details of POP3
BSD 2-Clause "Simplified" License
20 stars 13 forks source link

Add support for CAPA command #20

Open nevans opened 11 months ago

nevans commented 11 months ago

This adds support for asking a POP server about its capabilities (RFC2449).

Note that the STLS extension modifies the CAPA requirements. If support is added for STLS, the capabilities cache must be reset.


This is needed in order to properly support SASL authentication using the AUTH command (RFC5034).

And a basic SASL implementation should be the basis for supporting OAuth2 (whether via the non-standard XOAUTH2 SASL mechanism or the standard OAUTHBEARER SASL mechanism). Therefore, CAPA is a requirement for proper implementation of OAuth2.

nevans commented 2 months ago

I rebased this and changed it a little. Now it only add the #capa method to POP3Command, and the other methods are implemented directly on POP3.