-
Notifications
You must be signed in to change notification settings - Fork 36.1k
feat(Email Trigger (IMAP) Node): IMAP trigger node returns message UIDs #13152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @umanamente, Thanks for the PR, We have created "GHC-783" as the internal reference to get this reviewed. One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team. |
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
89b7a9a
to
48587bb
Compare
@umanamente hi, could you please fix the tests 🙏 thank you! |
dcd35b2
to
3e61d54
Compare
@@ -42,6 +42,9 @@ describe('Test IMap V2 utils', () => { | |||
headers: { '': 'Body content' }, | |||
headerLines: undefined, | |||
html: false, | |||
attributes: { | |||
uid: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add the following test cases:
- Expect the
uid
to be defined uid
is in the wrong format -- Probably requires sometry/catch
ingetEmails
ofv2
.
🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the first test: 'Expect the uid to be defined.'
I think the second test is unnecessary since the uid is already used in the code. Let me know your thoughts.
packages/nodes-base/nodes/EmailReadImap/v1/EmailReadImapV1.node.ts
Outdated
Show resolved
Hide resolved
Hey @umanamente thanks for adding the test case for
So you would have the following tests cases:
Let me know if this makes sense |
If uid is not present, the node itself will break, since uid is used in the code before returning |
Good day. Please tell me how I can get UID in the IMAP node? If it's not too much trouble, in more detail, where and what code should I write? |
@dana-gill Please let me know your thoughts and if any further changes are needed before it can be merged. |
@umanamente |
This function is not available in the node yet. This pull request adds it, but it needs to be merged first. |
|
Hey @umanamente could you rebase off of master and then ping me and you've done that? Thanks |
9cdfef3
to
3527a36
Compare
@dana-gill , sure, done |
@umanamente it looks like the unit tests are failing. could you please patch them up and then ping me again when the pr is ready? thanks! |
3527a36
to
c9dbbf6
Compare
Hey @umanamente |
c9dbbf6
to
0b7242e
Compare
@dana-gill , Could you please run the tests again? |
@dana-gill |
merged ;) |
n8n
|
Project |
n8n
|
Branch Review |
fix/pay-insights-service-tests
|
Run status |
|
Run duration | 03m 43s |
Commit |
|
Committer | Guillaume Jacquart |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
1
|
|
7
|
|
0
|
|
474
|
View all changes introduced in this branch ↗︎ |
Got released with |
@umanamente thanks for your PR and the time you invested. i just noticed that the UID is only available when i choose the format of the mails to be "Simple". Thanks in advance |
Ok, i created a PR with this feature: #15539 |
Summary
This PR adds returning the UID for each email message in the IMAP Trigger node. This allows subsequent nodes to use the UID for email manipulation. For example, the community IMAP node n8n-nodes-imap supports moving and copying emails between mailboxes, which requires the UID. Previously, this information was missing in the IMAP Trigger node output.
Steps to test:
attributes
field should contain theUID
field.Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if necessary). - NO NEED