Commit Graph

414 Commits

Author SHA1 Message Date
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
Nick O'Leary 8f2c631410
Bump pushbullet node version 2020-10-13 22:38:18 +01:00
guzba ff9d21827d
Attempt to mitigate stream server connect feedback loop
Pushbullet dev here. Around 36 hours ago we started receiving around 750 additional requests per second to connect to our stream server. I blocked around 50 - 100 IP addresses to mitigate the spam. This spam traffic has continued unchanged since then.

I don't know for sure what caused this, but one user came forward reporting issues with their Node-Red setup after I banned the IPs (status code is my banned IP status code which is pretty compelling evidence). I can't be sure what is causing the issue since no User-Agent is included in the requests, but it for sure is at least partly Node-Red API users. I'd like to work on mitigating this since mitigating the spam traffic costs money.

My first theory here is in this PR. I am not aware of any guarantees that you'll never get multiple 'error' events, so it makes sense to clear the timeout before setting a new one to reconnect. Even if it is just defensive, it may not have much cost? If you do get multiple error events without this change, it is possible to trigger many connect() requests which can error out and then trigger many more connect() requests with lots of timeouts, which is not good.

Another thing to consider is that this library's dependency for PB (https://github.com/alexwhitman/node-pushbullet-api) already has code to reconnect if a websocket connection is lost without having been properly closed. I think an even better solution is verifying this works and then deleting the reconnect logic from here.

I'm not an expert on Node-Red though so I am only trying to offer suggestions to ensure everyone is a good citizen when using our API :) Thanks!
2020-10-13 16:27:30 -05:00
Dave Conway-Jones aa45796a98
bump pushbullet package for PR 2020-09-27 12:59:02 +01:00
Frakke0 e980c8c04d
Fix not shown error (#692)
Fixed response to shown as string and not object
2020-09-27 12:57:09 +01:00
Dave Conway-Jones d3a3bc158c
email - show valid folders in error if fetch fails 2020-09-23 23:54:09 +01:00
Dave Conway-Jones 973fd8c6ec
bump email package version 2020-09-23 10:20:58 +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 ea729546d4
add sms_changed to pushbullet handler 2020-08-24 12:12:32 +01:00
Dave Conway-Jones 4cabe5ea30
bump xmpp node package version 2020-07-16 10:15:49 +01:00
Andreas Martens e334040dd7
replace xmpp-simple with @xmpp/client (#664)
* replace xmpp-simple with @xmpp/client

* indent at 4

* remove trailing commas
2020-07-16 10:00:27 +01:00
Andreas Martens bf94d320a9
correctly join a chat room (#663) 2020-07-10 12:30:44 +01:00
Dave Conway-Jones 01d675b372
Merge branch 'master' of https://github.com/node-red/node-red-nodes 2020-05-24 16:42:42 +01:00
Dave Conway-Jones e2c9a6521e
pushover node - hide user id and well as api key 2020-05-24 16:42:28 +01:00
juggledad 3afc2622f3
Updated README to expand the way `msg.from` works (#654) 2020-05-23 07:57:31 +01:00
Dave Conway-Jones 18afc438da
bup version for npm to pick up error handling PR. 2020-05-20 14:07:26 +01:00
JsBergbau d4d2404578
On error sending pushover message throw a catchable exception (#653)
* On error throw a catchable 

Throws an catchable exception if there is any error in sending the message. So you can react to it with a catch node

* Updated errorhandling

Updated the error handling process to be in compliance with the Node-RED Api
2020-05-20 14:04:42 +01:00
Dave Conway-Jones 43bdfb9fe3
bump lib 2020-05-05 19:36:48 +01:00
Dave Conway-Jones 92adb10fb3
pushover: ensure handles missing payload. 2020-04-17 09:43:45 +01:00
Dave Conway-Jones 0b590236a0
bump some node-red-node deps and packages
some due to  long outstanding doc PRs
2020-04-03 22:29:43 +01:00
dxdc a498bd16b5
Use latest release of node-prowl (#624) 2020-02-17 22:12:23 +00: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
Dave Conway-Jones 90a00279c0
add note re criteria to email in node
and change x-red to html
2020-01-28 18:15:28 +00:00
Dave Conway-Jones f1ff7fe707
bump to catch PR re attachments and update libs 2020-01-08 09:26:46 +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 c5fed3fc4e
restore smpp node server field to config.
to close #613
2019-12-26 16:25:11 +00:00
Dave Conway-Jones 3d60aa4c00
bump sentiment, rbe, email, feedparser, twitter, tail nodes
Locale files moved out
2019-12-05 21:36:59 +00:00
Kazuhito Yokoi 870a2146c0 Move English help to en-US directory (#592)
* Move English help about e-mail node to en-US directory

* Move English help about rbe node to en-US directory

* Move English help about tail node to en-US directory

* Move English help about twitter node to en-US directory

* Move English help about feedparse node to en-US directory

* Move English help about sentiment node to en-US directory
2019-12-05 21:18:59 +00:00
Dave Conway-Jones e814c676d2
bump pushover lib to pick up fix
to close #590
2019-11-13 21:53:58 +00:00
Dave Conway-Jones 9f27cda34f
bump email version 2019-11-09 12:00:58 +00:00
Hiroyuki Okada d53bd47f44 update mailparser & nodemailer (#599) 2019-11-09 11:58:53 +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 876c9a014e
add try catch to pushover node response 2019-09-08 15:30:49 +01:00
Dave Conway-Jones 6682320c97
Add gmail access info to readme and info 2019-08-29 15:49:38 +01:00
Dave Conway-Jones e20cf97fce
A whole bunch of whitespace linting - no functional changes 2019-08-11 13:37:15 +01:00
Nick O'Leary cd21a5f3c8
Add twitter icon to twitter node to remove dependency on core icon 2019-06-21 14:09:50 +01:00
Dave Conway-Jones 587ff6b8e6
don't let through pusher error
to close #548
2019-06-18 08:52:55 +01:00
Dave Conway-Jones 88ee43186c
update email info to match actual implementation. 2019-06-14 16:37:31 -04: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 2dfa1385c3
bump version for pr to get to npm 2019-05-26 14:24:45 +01:00
Hiroyuki Okada a226e6a308 add device filter (#545)
* add device filter

* fix jslint error of pushbullet

* fix pushbullet.js
2019-05-26 14:23:25 +01:00
Dave Conway-Jones f20d00a972
fix mailparser require 2019-05-23 12:35:13 +01:00
Dave Conway-Jones 3619971c57
bump email package for latest libs plus PR 2019-05-22 08:40:07 +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 df24e56de8
fix xmpp node stanzas from 2019-03-06 17:46:28 +00:00
Dave Conway-Jones 1f8ab3ebb7
Update email node readme to be less confusing
Bump pre-reqs as well
2019-02-24 23:07:38 +00: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
Damo ca0b01d10e Pushover image attachment feature (#509)
* Bugfix: node defaults not applying to messages

* Implemented pushover attachment feature
2018-12-13 09:33:50 +00:00
Dave Conway-Jones 7113598098
Bump email deps 2018-12-07 23:30:57 +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 a9a4ef9bf9
bump rbe, email, twitter nodes 2018-10-24 15:31:11 +01:00
Kazuhito Yokoi 8eaab69d04 Update Japanese translation for twitter node (#500) 2018-10-24 15:27:39 +01:00
Kazuhito Yokoi 425f5c151f Use words and URL in new Twitter portal (#498) 2018-10-24 12:31:14 +01:00
Kazuhito Yokoi f97a59b3e3 Update Japanese messages (#499)
* Update Japanese messages

* Fix URL
2018-10-24 12:28:38 +01:00
Dave Conway-Jones f74f3402e3
let twitter node DM using D or d
to close #493
2018-10-01 17:31:18 +01:00
Dave Conway-Jones 6540439e5f
Further XMPP tidy - more accurate from field - more docs. 2018-09-29 15:17:18 +01:00
Dave Conway-Jones 7bd255a341
better filtering for XMPP messages, stop history when joining rooms 2018-09-28 21:42:36 +01:00
Dave Conway-Jones b856ee6439
Give XMPP node a serious kicking
try to sort out sharing single connections and better status
To close #438 and to close #492
2018-09-28 14:59:22 +01:00
Dave Conway-Jones 8480c42d87
update overal packages 2018-09-24 21:12:23 +01:00
Dave Conway-Jones eae67c7a6c
bump pushover packe for docs pr 2018-09-17 20:00:45 +01:00
Paul 7ca806f4d1 Update Pushover docs to include msg.sound (#491)
* Add msg.sound to node info

* Add msg.sound option to the readme
2018-09-17 19:58:24 +01:00
Dave Conway-Jones 15cab5a381
feedparser Add correct accept headers
to fix #489
2018-09-14 16:10:53 +01:00
Dave Conway-Jones 28b143f0bf
move to MIT version of mailparser 2018-09-11 09:09:01 -04:00
Dave Conway-Jones 8acc5064d0
update notify package to use a more cross platform library 2018-09-10 11:37:20 -04:00
Dave Conway-Jones a2b9097613
Email node - report when on old node.js 2018-09-04 18:51:20 +01:00
Dave Conway-Jones 649f9f2fbf
Bump email node for pr attachment errors fix 2018-09-03 20:06:36 +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 35cbcb3345
Reset since_id if twitter tells us its invalid 2018-08-17 09:18:53 +01:00
Nick O'Leary 903a123049
Reset twitter polling on any api errors 2018-08-16 14:45:54 +01:00
Nick O'Leary 42cd6131b2
big twitter node update for api changes 2018-08-15 15:23:12 +01:00
Dave Conway-Jones 88574c71c9
bump pushover node version 2018-08-14 11:40:49 +01:00
cowchimp 771a49a8b0 support HTML-mode in Pushover node #467 (#468)
* support HTML-mode in Pushover node #467

* drop option to set whether Pushover uses HTML mode based on incoming node msg
2018-08-13 11:17:51 +01:00
Nick O'Leary 1c1b53425f
Fix tweet with image 2018-06-08 12:55:19 +01:00
Nick O'Leary aaf93ab587
Handle upgrade from old to new twitter node better 2018-06-07 12:07:01 +01:00
Nick O'Leary 235831b464
Major update to twitter node for auth changes 2018-06-07 11:25:25 +01:00
Dave Conway-Jones a21e952d93
Deprecate NMA node prior to deletion 2018-06-02 13:41:22 +01:00
Nick O'Leary 38e469464f
Add deprecation warnings to twitter node 2018-05-25 13:16:34 +01:00
Kazuhito Yokoi 6ebe49cd70 Fix space bug in Japanese node's information (#445) 2018-05-24 10:24:58 +01:00
Dave Conway-Jones 989c7147cb
lint catch es6 escapes in core nodes
to fix twitter node and sqlite node
2018-05-18 18:40:14 +01:00
Dave Conway-Jones 34a1351edc
tidy overall readme 2018-05-02 10:11:49 +01:00
Dave Conway-Jones d89f5c6be0
update some other dependencies 2018-05-01 22:39:05 +01:00
Dave Conway-Jones ae6cfcec2d
update readme for email node 2018-05-01 22:06:54 +01:00
Christopher Hiller 360d71f84b upgrade nodemailer; closes #439 (#440)
* upgrade nodemailer
- update documentation(s)
- add/update `package-lock.json`(s)
- add `engines` field(s)
* remove Node.js v4 from build matrix
* bump major version of node-red-node-email to v1.0.0
2018-05-01 21:31:22 +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 025f97206f
tidy some labels 2018-04-14 22:43:14 +01:00
Dave Conway-Jones 4679077760
Make extra node names more consistent i18n wise 2018-03-30 14:50:51 +01:00
Dave Conway-Jones b8b5a92ad1
update xmpp to keep working with open fire 2018-03-29 17:39:46 +01:00
Dave Conway-Jones 84a445d9d8
bump twitter node 2018-03-29 09:44:37 +01:00
eRudy 17744a51c0 temporary solution for direct messages (#415)
* DMs are coming back :)
2018-03-29 09:42:22 +01:00
Dave Conway-Jones 4a8f071c91
bump email, feed parser, twilio, sqlite, rbe packages 2018-03-29 09:34:31 +01:00
Marc Buils 9ea27f94ef Upgrade to Twilio sdk v3 (#411) 2018-03-29 08:50:51 +01:00
Hiroyasu Nishiyama 8ea3969714 Japanese translation of info text for twitter/feedparse/email/rbe nodes (#421)
* add Japanese info text of twitter node

* add Japanese info text of feedparse node

* add Japanese info text of email node

* add Japanese info text of rbe node

* minor fix of Japanese info text of email node

* minor fix of Japanese info text of email node
2018-03-29 08:49:30 +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 f92f16fd08
Add warning of too large interval for feedparser
To close #408
2018-03-11 21:10:37 +00:00
Dave Conway-Jones 4ed7ab590d
reinstate feed parser useragent 2018-01-29 09:16:35 +00:00
Ben Hardill 482cfea1de Bump twitter to 280 chars (#372)
To close #371 

Thanks @hardillb
2017-11-10 15:15:53 +00:00
Dave Conway-Jones 86ab73662b
Twilio creds could not be entered - to fix #357
(bad token object)
2017-09-11 11:58:04 +01:00
Dave Conway-Jones ee852bf060
Bump event listener limit up to 100
to close #327
2017-08-27 18:21:14 +01:00
Dave Conway-Jones 2413738082
update pusher nodes to later api
to close #347 and close #348
2017-08-27 14:00:20 +01:00
Dave Conway-Jones dbff575e24
bump email package.json 2017-07-18 20:32:50 +01:00
Kazuhito Yokoi c6f8b7ee76 Modify messages in e-mail node to refer to language files (#343)
thanks @kazuhitoyokoi
2017-07-12 18:16:43 +01:00
Dave Conway-Jones d39e033409
bump packages for nom 2017-06-16 07:16:42 +01:00
Dave Conway-Jones f6a05823a9
fix tweet.io links
to close #332
2017-06-13 00:11:30 +01:00
Dave Conway-Jones 7af48ce10b
Tidy up / hide non-supported ways of doing twill crews 2017-06-05 17:26:05 +01:00
Dave Conway-Jones 6a85e86a09
bump twilio package version for nom 2017-06-05 13:29:31 +01:00
Jon Sands 8614bb08ed Fix Twilio error message reporting (#328)
Thanks @Fohdeesha
2017-06-05 13:27:05 +01:00
Dave Conway-Jones 3c3b344942
bump packages on nom with Japanese translations 2017-05-31 20:44:33 +01:00
Kazuhito Yokoi 412d71701d Add Japanese translation files(61-email.json, 27-twitter.json) (#323)
* Add Japanese translation file for e-mail(61-email.json)

* Add Japanese translation file for twitter(27-twitter.json)
2017-05-31 20:37:00 +01:00
Kazuhito Yokoi d4d5b1f893 Add Japanese translation file for feedparse(32-feedparse.json) (#322) 2017-05-31 08:45:11 +01:00
Dave Conway-Jones 85498279b4
bump sweetie package to reflect PR 2017-04-15 12:14:57 +01:00
Luke Wendling cdd3b04492 fix dweet.io href (#298) 2017-04-15 12:03:22 +01:00
Dave Conway-Jones 38d16b8a4d
Tidy up listing for some nodes. No functional changes
to make listing task pass
2017-04-12 13:32:08 +01:00
Dave Conway-Jones 47520ea5aa email node - put description before attached file. 2017-04-03 18:02:17 +01:00
Nick O'Leary 9be6545739
Twitter node: remove auth requirement on oauth callback routes
Fixes #253
2017-03-15 09:58:14 +00:00
Dave Conway-Jones 5a85813a45 Bump to Twilio package
to close #282
2017-02-24 22:01:57 +00: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
Yohann Ciurlik 8e001fcd45 Adding No Auth support to social email out node (#277)
* Let email out node connect to SMTP without authentication

Add the possibility to connect to local SMTP without authentication.

* Adapt test to connect to SMTP without credentials

Adapt test to connect to SMTP without credentials

* Add coverage for social email out node

Add coverage for social email out node

* Add more coverage to email out node

Add more coverage to email out node
2017-02-15 18:33:05 +00:00
Dave Conway-Jones 367237d946 Let email out node set secure connection explicitly
to close #1148
2017-02-13 22:43:43 +00:00
wbchn fa781d6e1a fix email login error when using pop3 method (#272)
Thanks for spotting this (and fixing it !)
2017-02-04 17:06:19 +00:00
Dave Conway-Jones 316a2fd272 Re-lint a load of nodes 2017-01-29 17:45:44 +00:00
Dave Conway-Jones fa51c8fb36 Fix email read flag scoping issue
to close #265
2016-12-21 17:17:35 +00:00
Dave Conway-Jones a0b95fe659 set email default to read (as was previously happening) 2016-12-12 21:14:32 +00:00
Dave Conway-Jones 0d0df5cef9 Add to, cc and bcc fields to incoming msg
To close #258 and to fix #260
2016-12-12 21:10:36 +00:00
Dave Conway-Jones fcc1fcfca8 bump package versions (heatmiser, arduino, pushover) 2016-11-26 21:22:18 +00:00
Dave Conway-Jones 1bfda975ef Add events to Twitter node
to close #126
Thanks @ukmoose
(sorry had to do it manually)
2016-11-12 11:43:25 +00:00
Dave Conway-Jones f2bac89911 Fix edits in sense hat and prowl nodes 2016-11-07 14:17:02 +00:00
Dave Conway-Jones 7917ca8dcf Fix missing httpAdmin permissions for Pushbullet, twitter what3words and sensehatsim
fixes #244
2016-11-06 20:27:21 +00:00
Dave Conway-Jones a7247e898a Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
Dave Conway-Jones 6fce1f5622 Pushover, one letter spelling mistake in placeholder 2016-10-17 23:00:22 +01:00
Dave Conway-Jones 735f610730 Pushover, add support for url and url_title
to close #240
Thanks @eisbehr
2016-10-17 22:56:24 +01:00
Dave Conway-Jones 8efc1e5fc8 bump request npm levels in wet and feed parser 2016-10-13 14:23:55 +01:00
Dave Conway-Jones cebeab02f9 toggle twitter limit rate status back if not limited anymore 2016-09-30 21:21:44 +01:00
Dave Conway-Jones 3ff0b6a761 More twitter rate fixes, Redo input pin logic 2016-09-30 20:38:05 +01:00
Dave Conway-Jones 8a03773567 better global handling of twitter rate limits
and make status messages i18n
2016-09-30 17:00:20 +01:00
Dave Conway-Jones 5d7d7e9d24 back off twitter retry to twitter recommended 60s 2016-09-30 11:13:38 +01:00
Dave Conway-Jones 741d3db06b clear twitter reconnect timeout to close #237 2016-09-30 08:54:55 +01:00