Commit Graph

80 Commits

Author SHA1 Message Date
809c572ca7 reduce the size of the log entry by truncating any string values to 500 characters 2024-01-29 14:32:45 +08:00
585957469c fix: init sentry sdk to disable tracing warning in cloud logs 2024-01-23 12:46:51 +08:00
41805d13db Bump @sentry/serverless from 6.19.3 to 7.77.0
Bumps [@sentry/serverless](https://github.com/getsentry/sentry-javascript) from 6.19.3 to 7.77.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.19.3...7.77.0)

---
updated-dependencies:
- dependency-name: "@sentry/serverless"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-07 03:35:00 +00:00
c4773dc904 Landing page improvements and various supporting improvements 2023-10-24 09:43:39 +01:00
9021854be7 convert plain text newsletter email content to html using markdown-to-html and save it if html is not available 2023-09-25 21:16:43 +08:00
792cf0b207 upgrade google cloud sdk 2023-08-11 13:55:29 +08:00
fa1ff9ba17 Upgrade node to 18.16 2023-07-24 15:55:11 +08:00
b891e547c9 Make content optional 2023-04-24 21:03:39 +08:00
187ad654e7 Add debug logs 2023-04-22 12:29:46 +08:00
50f55501f4 Fix list-unsubscribe header undefined 2023-04-21 15:42:58 +08:00
de0fb8542a Decode email metadata from rfc2047 encoded 2023-04-20 20:52:43 +08:00
8e3d2b0b91 Save epub email attachments 2023-04-19 11:36:28 +08:00
e48ba1c5b2 Add test case 2023-04-14 18:55:57 +08:00
182860e4d3 Update comment 2023-04-14 18:50:31 +08:00
0a2598e296 Parse the author name from email address 2023-04-14 18:48:24 +08:00
f7d46752e1 Forward subscription confirmation email 2023-04-14 18:40:38 +08:00
8c8538a49c Merge pull request #1936 from omnivore-app/dependabot/npm_and_yarn/google-cloud/pubsub-3.4.1
Bump @google-cloud/pubsub from 2.19.0 to 3.4.1
2023-04-13 10:51:50 +08:00
e620861eaf Invert newsletter detection logic 2023-04-06 18:07:10 +08:00
6ade830605 To in the envelope will always be a single-element array 2023-03-23 18:33:32 +08:00
ea3077ea2e Use receipient address in the envelope field 2023-03-23 18:18:33 +08:00
92c532a62a Bump @google-cloud/pubsub from 2.19.0 to 3.4.1
Bumps [@google-cloud/pubsub](https://github.com/googleapis/nodejs-pubsub) from 2.19.0 to 3.4.1.
- [Release notes](https://github.com/googleapis/nodejs-pubsub/releases)
- [Changelog](https://github.com/googleapis/nodejs-pubsub/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/nodejs-pubsub/compare/v2.19.0...v3.4.1)

---
updated-dependencies:
- dependency-name: "@google-cloud/pubsub"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 22:03:03 +00:00
017c8f5f8a Forward Gmail verification email to the user 2023-03-07 18:50:08 +08:00
88f6e20bfc Pass email headers to the content-handler 2023-01-30 18:52:38 +08:00
7dbf8662fc Fix test 2023-01-19 09:38:21 +08:00
8f9c317dd1 Save received email before publishing data 2023-01-18 22:35:07 +08:00
d60890d154 Add pubsub to save received email 2023-01-18 17:13:11 +08:00
3f373ab3b6 Save received email 2023-01-18 15:00:34 +08:00
66d3ffe7f3 Fix not correctly set confirmation code from Gmail in Spanish 2022-11-01 12:54:45 +08:00
d6e465d482 Add Dockerfile for pdfHandler 2022-10-04 15:28:12 +08:00
53d6afe25f Fix tests 2022-10-04 10:47:58 +08:00
9cae703666 Fix Dockerfile 2022-10-04 10:20:13 +08:00
78bce2d1e7 Add Dockerfile for cloud run 2022-10-04 09:51:42 +08:00
726df26c15 Temporarily copy content-handler to cloud functions root dir when doing cloud build 2022-10-03 15:39:05 +08:00
a9607adfd3 Import content-handler as local dependency 2022-10-03 11:11:24 +08:00
b00a516737 Add other newsletter handlers 2022-09-30 12:51:23 +08:00
dfbd317f99 Import content-handler in inbound-email-handler 2022-09-30 12:51:22 +08:00
ea59efbf4d Replace with the test address 2022-09-09 15:22:22 +08:00
512c7e10d8 Update sender address 2022-09-09 15:19:54 +08:00
02ab4e45e5 Fix not setting confirmation code from Google Japan confiramtion emails 2022-09-09 15:12:19 +08:00
7d608ed2cb Use parsed from, to and subject from email headers 2022-08-05 10:03:09 +08:00
2ae7219e35 Update comment 2022-08-04 20:32:17 +08:00
70deb348cf Fix not getting correct sender email address from forwarding email by Gmail rules 2022-08-04 18:50:23 +08:00
6f11ccacb1 Save article from forwarding emails 2022-07-27 12:15:28 +08:00
d184ca8d04 Add function isProbablyArticle to test if a forwarded email contains an article to save 2022-07-27 12:15:26 +08:00
dec2027fc8 Merge pull request #1009 from omnivore-app/fix/unsubscribe
fix not getting unsubscribe email address from beehiv newsletter by decoding the list-unsubscribe header
2022-07-27 09:41:42 +08:00
d1b013d826 Bump @google-cloud/functions-framework from 3.1.0 to 3.1.2
Bumps [@google-cloud/functions-framework](https://github.com/GoogleCloudPlatform/functions-framework-nodejs) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/compare/v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: "@google-cloud/functions-framework"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:32:05 +00:00
cea1c856f7 fix not getting unsubscribe email address from beehiv newsletter by decoding the list-unsubscribe header 2022-07-25 17:15:12 +08:00
c94d5db259 Merge pull request #889 from omnivore-app/dependabot/npm_and_yarn/axios-0.27.2
Bump axios from 0.26.0 to 0.27.2
2022-07-08 13:48:27 -07:00
6ea5bc3b18 fix dependecies 2022-07-08 12:10:32 +08:00
7b714e7bc3 fix tests 2022-07-07 17:38:14 +08:00