IMAP-NODE Delete Mails

Hello community,

it would be great if there would be the possibility to delete also emails at the IMAP node.

Greetings Fabian

Make sure you upvote the feature request.

1 Like

Yes, it would be really nice to be able to delete mail processed by the ā€œIMAP Emailā€ node instead of just marking them as read.

Moving mails to another folder would be nice to. The underlying node-imap lib supports I think.

Does anyone know a workaround for as long as this feature doesnā€™t exist in n8n?

1 Like

I created an n8n community node, n8n-nodes-imap, which is now available for use. Hereā€™s a snapshot of what you can expect from this node:

Operations

Mailbox Operations:

  • Get List of Mailboxes: This function allows you to retrieve a list of all your mailboxes, complete with essential status information like message count.
  • Get Status of a Mailbox: Gain detailed insights into the status of any mailbox, including the total number of messages and other pertinent details.
  • Create a Mailbox: You can now set up new mailboxes directly within your workflow.
  • Rename a Mailbox: Adjust the names of your mailboxes as required.
  • Delete a Mailbox: To prevent accidental data loss, this feature is currently disabled, as I havenā€™t identified a significant use case in standard workflows.

Email Operations:

  • Get List of Emails in a Mailbox
  • Download Attachments from an Email
  • Move an Email to Another Mailbox

I encourage you to test this node and share your experiences or suggestions.

Github repo: GitHub - umanamente/n8n-nodes-imap

1 Like

Thatā€™s a great workaround for now, thank you! Hopefully the team will some day revamp the IMAP node to natively include this as well.

1 Like

i still need to delete mails (older than 10 days) from a mailbox as it is full otherwise. I get notifications there all the time that I parse but manually deleting thousands of mails is ā€¦well not really great.
please enable dele mails.

You can use the ā€˜move emailā€™ command to move emails to the trash.

Thx for the node. I am only struggeling with setting the credentials. I the docs it says that I can reuse the credentials from the n8n IMAP trigger node. I am using this node and have created credentials successfully - but in the dropdown of your community node these credential settings do not appear. Any idea?

Whatā€™s the version of the node?

It is the latest v2.0.1
n8n is at v1 49.0
Running on docker behind an nginx proxy

When I restart the docker container the nide still seems to be installed (listed under User Settings / Community Nodes) but when trying to add it to a workflow it does not appear anymore - strange.

Solved the problem after I found the following: Community Nodes not accessable

Deleted Browser cache - all good now

1 Like