2 // Copyright 2020 Blue Static <https://www.bluestatic.org>
3 // This program is free software licensed under the GNU General Public License,
4 // version 3.0. The full text of the license can be found in LICENSE.txt.
5 // SPDX-License-Identifier: GPL-3.0-only
13 type Message interface {
20 type Mailbox interface {
21 ListMessages() ([]Message, error)
22 GetMessage(int) Message
23 Retrieve(Message) (io.ReadCloser, error)
29 type PostOffice interface {
31 OpenMailbox(user, pass string) (Mailbox, error)