1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Updated Email (markdown)

Neil Kolban 2016-03-08 00:17:04 -06:00
parent 92214b6eaf
commit 78711753d0

@ -40,6 +40,14 @@ __Question__: For attachments, how should the attachment be stored in the attach
__Answer__: NK 2016-03-06 - I vote for the direct output of a record from the `mailparser` package. It seems rich and un-opinionated. In addition, we should always assume a more specific package has more appreciation for their domain that we do. As such, if they added a property they had a reason to do so (we should assume) and it should not be for us to question why or, unless we have a good reason to think otherwise, exclude it from our exposure of data.
__Question__: Since IMAP appears superior to POP3, why bother supporting POP3 at all?
__Answer__: NK 2016-03-08 - IMAP provides the ability to keep a copy of the email on the server and the message is only deleted when requested. Basically, POP3 is a read-once while IMAP is read-many and delete when no longer needed. For end-users reading email manually, this is desirable. I can read an email on my PC and the same email on my phone and when I choose to delete it from either, it is deleted in both. IMAP provides richer function. POP3 is simpler, we download the email to the email client and then it is deleted from the server. No other email client can connect to the server and see it again. For automated email processing, this may be exactly what is required. We don't want to ever see the same email twice and POP3 appears to provide exclusive access to an email account. This may actually prove to be beneficial.
There is a second possibility that may also be extremely relevant and that is the notion of simply exposing choice. If the effort (design, development and maintenance) of supporting POP3 in addition to IMAP is small enough, why would we choose not to support POP3 in __addition__ to IMAP?
My vote is to provide support for both with the initial default being IMAP if not explicitly changed to POP3 by user configuration/selection.
---
### Proposed design