NuSkooler / enigma-bbs

ENiGMA½ BBS Software
https://nuskooler.github.io/enigma-bbs/
BSD 2-Clause "Simplified" License
532 stars 104 forks source link

Add SMTP/IMAP Support #185

Open coolacid opened 6 years ago

coolacid commented 6 years ago

Adding SMTP/IMAP support would allow remote access to Netmail, this allows users to access messages without needing to fully log into the board.

iMap folders may also work for #184 as opposed to NNTP - This would also be related to #31 but instead of bundles, direct access.

ellisgl commented 6 years ago

Don't you mean SMTP support? SNMP is usually for getting info on switches and routers and server hardware.

On Sat, Apr 28, 2018 at 6:47 PM, Jason Kendall notifications@github.com wrote:

Adding SNMP/IMAP support would allow remote access to Netmail, this allows users to access messages without needing to fully log into the board.

iMap folders may also work for #184 https://github.com/NuSkooler/enigma-bbs/issues/184 as opposed to NNTP - This would also be related to #31 https://github.com/NuSkooler/enigma-bbs/issues/31 but instead of bundles, direct access.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NuSkooler/enigma-bbs/issues/185, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFxX62LA3CAhRRUE9kP9u2sDFvu04Akks5ttP-WgaJpZM4Trm0W .

-- Kenneth Ellis McCall

coolacid commented 6 years ago

See edits ;)

NuSkooler commented 6 years ago

Haha, good, this had me confused for a moment ;)

Currently you can directly send/receive NetMail over FTN by going to to the private mail area and forming a "to" field as such: joeuser @ 10/10:100 or joeuser <10/1:100> (including a few more variants).

What I've been planning is to allow a op to set up their config such that you can send: joeuser@whateverhost.com and route mails to localEnigUserName@whateverdomain

The base of the current email support uses Nodemailer which supports many transports, but IIRC not IMAP.

coolacid commented 6 years ago

Oh that's very handy option!

I'm more looking at being able to get Netmail into my email client of choice, then reply - even if it's from a remote node.

NuSkooler commented 6 years ago

@coolacid Ah, I'm sure that could be baked in as well.

tracker1 commented 6 years ago

imap/pop are for reading... imap4 is ugly, and not sure of any mature implementation.. pop3 would be easier... smtp should be doable for sending to users.

just my own opinion. nntp is way easier than imap4.

coolacid commented 6 years ago

I agree IMAP is harder to implement then POP3, however - IMAP has always been associated with leaving mail on the server, and POP3 the client is responsible for storing mail.

In my opinion a BBS should be the primary place for the messages to live, and IMAP is only an optional way to access them.

I can believe the lacking of a quality imap server module, however, I'd recommend making the effort in imap as opposed to pop3.

streaps commented 6 years ago

I wouldn't try to implement IMAP. Maybe wait until JMAP is supported in mail clients, seems much more easier to implement. Or just use fetchmail an let it deliver the mail to an local SMTP server (which could be enigma-bbs).

For receiving emails an LMTP option would be nice, too (which seems to be supported by Nodemailer: http://nodemailer.com/extras/smtp-server/#using-lmtp)

NuSkooler commented 6 years ago

I really don't intend to directly build anything (protocol wise) not already supported by Nodemailer here. It already supports plugins in itself, so e.g. IMAP could be done that way.

ENiGMA simply needs an external messaging module(s) that and send/receive with Nodemailer. Adding the ability to send/receive externally (e.g. message forwarded to your external email -> reply and have it show up on the system) should be doable with this as well.

If someone wants to take a stab at this, Nodemailer is already part of ENiG and the FTN module can already serve as an example for external systems. Right now, some other stuff (mostly bug fixes) is in front of this in the 0.0.9-alpha branch (for me anyway)

tracker1 commented 6 years ago

Does enigma currently support mail folders for email.. Also, pop3 clients can be set to leave mail on the server... or not. If on the server, can still read.

NuSkooler commented 6 years ago

@tracker1 Everything that ENiGMA currently supports has been discussed above. Look to Nodemailer for other stuff that "could" be possible. As for fetching email, I don't think Nodemailer supports that so another package would need to be brought in, or POP3 implemented.

Once more details about what people are actually after here are determined, individual issues probably need entered. So far I think:

Did I get that right / am I missing something?

coolacid commented 4 years ago

Documenting this here for tracking: JMAP support in Thunderbird: https://bugzilla.mozilla.org/show_bug.cgi?id=1322991 (Not on roadmap, yet)