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

75 Commits

Author SHA1 Message Date
wooferguy
9a57958a1e
XOAuth2 for Email-In node (#975)
* Update PULL_REQUEST_TEMPLATE.md

* Add new UI elements to Email In node

Locale for en-US
Added Auth type and Token field to Email IN
Dynamically appear based on selection

* XOAUTH2 IMAP

Minor UI changes. Exposing only XOAuth2. Picks up raw access token from input message specified.

Only works for IMAP
Token formatted by node for Exchange and GMail, won't work on other providers.
Only works on trigger, not timer

TODO:
Add POP XOAUTH2 capability
Add SMTP XOAUTH2 capability
Add option to pass SASL XAOUTH2 token rather than raw OAUTH2 token

* SASL Format

Added checkbox to turn off SASL formatting if the user wants to do this themselves

* XOAuth2 forces input

Using XOauth2 forces triggered node, and automatic trigger sets auth to basic;
XOAuth2 needs token from flow

* Error reporting

Password missing error only occurs if set to basic authentication.

Token missing only occurs if set to XOAuth2.

* Unit tests

Make sure basic authentication is selected by default, and that an additional input is created and timed triggers are turned off for XOauth2

* Cleanup and README

Remove old code, update readme

* XOauth2 IMAP Release

Prevent XOAuth2 being used for POP. Update PR Template.
Updated help file.
Bumped version to 1.19-beta

* Update POP3 dependency

Removed dependency to poplib.js, moved to node-pop3. Re-wrote checkPOP3 function asynchronously using the new library. Added some node.status changes to mimic IMAP behaviour.

* XOAUTH2 POP3

Added checking for authentication type to allow XOauth2 tokens to be sent to POP server. Turned off UI restrictions for this functionality.

* XOAUTH2 POP3 Release

Updated help docs and version to reflect changes.

* Add new UI elements to Email Out node

Add option for XAouth2 for SMTP node

* XOAUTH2 SMTP

Exposing functionality for OAuth2 through Nodemailer. Added some error reporting if credentials are missing to match the Email-In node.

* XOAUTH2 SMTP Release

Updated help file to reflect changes.

* Unit Tests for Email Out

Modified tests to allow these unit tests to pass, but does not address the fault caused by the Node Test Helper - credentials only loaded after the flow has been loaded.

---------

Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
2023-03-27 20:27:47 +01:00
Dave Conway-Jones
b9053cf962
email - better cleanup of deleted messages ? 2022-12-22 11:38:00 +00:00
Dave Conway-Jones
c3a5716fe7
Let email node be able to send blank topic
and let msg.description be " also
to close #959
2022-11-08 13:52:37 +00:00
Dave Conway-Jones
06c9bd65a7
Let email node better report catchable connection errors
to close #956
2022-10-16 17:50:39 +01:00
Dave Conway-Jones
6830ce4fba
email node - add done capability to retrieving mail node. 2022-07-19 12:59:41 +01:00
David D'Hauwe
0fa0816506
Smtp server (#923)
* Email Mta Node added security and authentication

* Documentation updated

* Original formatting restored
2022-06-10 10:14:38 +01:00
Dave Conway-Jones
fb9c90f68c
fix email inreplyto to do the sensible thing 2022-03-19 10:31:40 +00:00
Dave Conway-Jones
e6930274e2
Bump email
and include poplib to avoid example warning.
2022-01-01 19:11:01 +00:00
Dave Conway-Jones
761bb30ada
Email node - better handling of criteria errors 2021-07-16 14:41:12 +01:00
Dave Conway-Jones
0d1a41f18a
clarify email node tls? option flag 2021-05-11 09:22:09 +01:00
HiroP0
13d534ee54
added support for imap 'autotls' option to 'email in' node (#796)
* added support for imap 'autotls' option to 'email in' node
2021-04-14 17:28:03 +01:00
Dave Conway-Jones
1c256fd3b3
refix email attachments array 2021-04-01 09:36:36 +01:00
Maximilian Gutwein
4697636055
Add support for separate plaintext in outgoing mails (#788)
* Add support for separate plaintext in outgoing mails

* Rename msg.plain to msg.plaintext
2021-03-31 20:51:43 +01:00
Dave Conway-Jones
c1e83bf06f
Email - nsure imap tries to disconnect nicely first.... then destroy
to close #784
2021-03-28 16:55:28 +01:00
Dave Conway-Jones
14983c9722
mail - check attachment valid contents if possible
to close #728
2021-01-12 12:41:41 +00:00
Dave Conway-Jones
07e5d9fd65
email node - add msg.priority and msg.headers options 2020-10-26 09:08:10 +00:00
Dave Conway-Jones
6f351943cb
email node - remove promises for node8
and fixup tests
2020-10-19 21:33:32 +01:00
Dave Conway-Jones
ef1ebe7b44
Fix email tests and add one for MTA node 2020-10-19 14:32:09 +01:00
Dave Conway-Jones
14087a9f77
Add MTA node to email 2020-10-19 12:24:18 +01:00
Dave Conway-Jones
d3a3bc158c
email - show valid folders in error if fetch fails 2020-09-23 23:54:09 +01:00
Vincent Hou
606f9c71e7
Update 61-email.js (#689)
Fixed disposition issue caused by `this`.
2020-09-23 08:35:08 +01:00
Dave Conway-Jones
46f3dfc382
email don't retry connection while still busy. 2020-08-28 09:36:06 +01:00
Dave Conway-Jones
55f6609a4f
Fix email node timeout when triggered manually 2020-02-09 14:11:54 +00:00
Dave Conway-Jones
5780b2a5c3
slight adjust email retry timeout 2020-01-31 21:46:42 +00:00
Kazuhito Yokoi
12be92e06f Unify file name for binary attachment in e-mail node (#619) 2020-01-08 09:13:05 +00:00
Dave Conway-Jones
a318dc56ff
better escape for node-red without done. 2019-09-26 13:39:25 +01:00
Dave Conway-Jones
1f0ab0937d
Add done/complete to email node
and fix .from field
2019-09-24 21:44:56 +01:00
Dave Conway-Jones
e20cf97fce
A whole bunch of whitespace linting - no functional changes 2019-08-11 13:37:15 +01:00
Luis Mario Domenzain
16130362fc email optionally uses criteria from message (#547)
* email optionally uses criteria from message

Allows for generation of detailed queries through flows when triggering an email
fetch in IMAP.

* use the same default as a new email node

When the criteria is set from a message, if there is no criteria use the same default as a new node.
2019-05-29 12:45:54 +01:00
Luis Mario Domenzain
877763aae9 use latest mailparser API (#546)
The API diverged between the original and mailparser-mit
2019-05-28 16:55:07 +01:00
Dave Conway-Jones
f20d00a972
fix mailparser require 2019-05-23 12:35:13 +01:00
Luis Mario Domenzain
75f9db8d8b add to email threading headers (#542)
and update documentation in all available locales

nodemailer already supports all of:
- msg.replyTo
- msg.inReplyTo
- msg.references
2019-05-21 19:30:32 +01:00
Dave Conway-Jones
6dd15d3335
add to email msg.status
and bump nodemailer version
2019-04-10 09:01:08 +01:00
Dave Conway-Jones
b08b12865b
Fixup email PR and push to npm 2019-02-11 20:10:31 +00:00
Wolfgang Rathgeb
aa684240d8 add option to set criteria witch type of emails should be requested (#519) 2019-02-11 19:26:45 +00:00
Dave Conway-Jones
88f6784267
Stop email node producing duplicates on reconnect
to close #514
2019-02-01 00:00:16 +00:00
Dave Conway-Jones
2c8e4780e1
Allow email node to fetch node if required
to close #513
2019-01-31 21:00:31 +00:00
Dave Conway-Jones
5f22603beb
Email node - Catch bad IMAP folder error to close #495 2018-10-26 17:00:27 +01:00
Dave Conway-Jones
28b143f0bf
move to MIT version of mailparser 2018-09-11 09:09:01 -04:00
Dave Conway-Jones
a2b9097613
Email node - report when on old node.js 2018-09-04 18:51:20 +01:00
Tom Brusehaver
337588e7ab Fix for Email In Node Crashed Node-RED (#471)
When attachments aren't correct.
2018-09-03 19:56:36 +01:00
Dave Conway-Jones
52df7cb30f
Fix email msg cloning
to close #442
to close  #461
2018-08-30 13:05:39 +01:00
Schreck1985
45e4c6d9d4 Node red mail usetls (#480)
* Default value for tls, checking if tls is set to false
2018-08-22 13:57:42 +01:00
Nick O'Leary
f033a383b9
Ensure email refresh interval doesn't exceed setInterval limit 2018-04-16 13:35:05 +01:00
Dave Conway-Jones
74d51f5a79
Tiny tidy of email node
really needs a proper re-write…
2018-03-20 19:04:42 +00:00
Dave Conway-Jones
47520ea5aa email node - put description before attached file. 2017-04-03 18:02:17 +01:00
Dave Conway-Jones
dc1ca765ec add missing header property from email in node
to close #281
Thanks @obook
2017-02-22 17:55:46 +00:00
Dave Conway-Jones
a4eaf55961 bump email package version on npm
better fix from @timolehto
2017-02-21 13:07:42 +00:00
timolehto
f15f8598f3 Fixes smtp/auth bug: https://github.com/node-red/node-red-nodes/issues/279 (#280) 2017-02-21 13:00:21 +00:00
Dave Conway-Jones
6ace40c1f2 re-add auth to email out...
apologies all round
2017-02-21 12:23:47 +00:00