Fossil Forum

POP3 gateway
Login

POP3 gateway

POP3 gateway

(1) By anonymous on 2021-06-09 10:15:03 [source]

Hello!

Bellow is an experimental Post Office Protocol 3 (POP3) gateway for fossil's forums.

It sports 3 maildrops: one for fossil, pikchr, and sqlite.

<pop://fossil@pop.textprotocol.org:1110>
<pop://pikchr@pop.textprotocol.org:1110>
<pop://sqlite@pop.textprotocol.org:1110>

Usage example:

# Commands sent from the client to the server are prefixed with "C:"
# Responses sent from the server to the client are prefixed with "S:"

# telnet pop.textprotocol.org 1110
S: +OK
C: capa
S: +OK
S: EXPIRE NEVER
S: LOGIN-DELAY 900
S: TOP
S: UIDL
S: USER
S: .
C: user fossil
S: +OK
C: stat
S: +OK 200 621979
C: top 200 0
S: +OK
S: Return-Path: <>
S: From: anonymous <noreply9e9eb482a@fossil-scm.org>
S: To: Fossil Forum <fossil-forum@fossil-scm.org>
S: Date: Tue, 08 Jun 2021 22:38:39 -0000
S: Subject: Re: Fossil for personal CMS
S: Message-Id: <cbad102f5ee49635962170141ab66f29@fossil-scm.org>
S: In-Reply-To: <9a8f6b7c8aa154ab28c556be418bada2@fossil-scm.org>
S: References: <9a8f6b7c8aa154ab28c556be418bada2@fossil-scm.org>
S: Archived-At: <https://fossil-scm.org/forum/forumpost/cbad102f5ee49635962170141ab66f29>
S: List-Archive: <https://fossil-scm.org/forum>
S: List-Id: Forum for discussion of the Fossil DVCS <fossil-forum@fossil-scm.org>
S: List-Post: NO
S: Importance: low
S: Precedence: list
S: Mime-Version: 1.0
S: Content-Type: multipart/mixed; boundary="10xf05511cbbaadd110022ff5=_"
S:
S: .
C: quit
S: +OK

By default, a maildrop returns the latest 200 messages.

Use PASS <limit> to change the default. A value of zero returns all available messages.

C: user fossil
S: +OK
C: pass 0
S: +OK
C: stat
C: +OK 16447 54998923 

The messages are structured as MIME multipart — rendered as both text/plain and text/html:

# reformime -i < mbox/fossil/QUEMWF.cbad102f5e.eml
section: 1
content-type: multipart/mixed
content-transfer-encoding: 8bit
charset: UTF-8

section: 1.1
content-type: multipart/alternative
content-transfer-encoding: 8bit
charset: UTF-8

section: 1.1.1
content-type: text/plain
content-transfer-encoding: quoted-printable
charset: utf-8

section: 1.1.2
content-type: text/html
content-transfer-encoding: quoted-printable
charset: utf-8

section: 1.2
content-type: text/plain
content-transfer-encoding: quoted-printable
charset: utf-8
content-disposition: inline

IMAP

The POP3 gateway can be fronted by an IMAP server — such as the one provided by Gmail.

Under Settings → Accounts and Import → Check mail from other accounts:

Email address:  fossil@pop.textprotocol.org
Username: fossil
Password: fossil
POP Server: pop.textprotocol.org 
Port: 1110

[X] Leave a copy of retrieved message on the server.

https://support.google.com/mail/answer/21289?hl=en

Feedbacks welcome.

Thanks!

(2) By Kirill M (Kirill) on 2021-06-09 11:55:30 in reply to 1 [link] [source]

I love POP3!

The POP3 gateway can be fronted by an IMAP server — such as the one provided by Gmail.

Do I understand this correctly that for IMAP, some other service, which provides IMAP, would have to fetch the messages via POP3 first?

P.S. Of course I had to try DELE :]

list 1
+OK 1 3030
dele 1
-ERR

(3) By anonymous on 2021-06-09 12:22:27 in reply to 2 [link] [source]

Do I understand this correctly that for IMAP, some other service, which provides IMAP, would have to fetch the messages via POP3 first?

Correct. If one wants IMAP, then one need to bridge the POP3 content to it somehow.

In this example, Gmail can both fetch & import any POP3 maildrop.

https://www.lifewire.com/how-to-collect-mail-from-other-pop-accounts-in-gmail-1172076

This is purely optional.

P.S. Of course I had to try DELE :]

:)

It's a read-only maildrop, of course. No delete. Forever retention (i.e. EXPIRE NEVER).

The fossil maildrop sports 16,449 messages, mirroring https://fossil-scm.org/forum.
The pikchr maildrop sports 517 messages, mirroring https://pikchr.org/home.
The sqlite maildrop sports 12,332 message, mirroring https://sqlite.org/forum.