Skip to content
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

IMAP Email returnes header field names twice #13468

Open
vco1 opened this issue Feb 24, 2025 · 6 comments
Open

IMAP Email returnes header field names twice #13468

vco1 opened this issue Feb 24, 2025 · 6 comments
Labels
in linear Issue or PR has been created in Linear for internal review In Review We are reviewing the issue

Comments

@vco1
Copy link

vco1 commented Feb 24, 2025

Bug Description

As of n8n version 1.79.3 the Imap Email node returns header filed names twice. Like this:

"headers": {
"return-path": "Return-path: <[email protected]>",

To Reproduce

  1. Add an IMAP Email node.
  2. Run it.
  3. Look at output.

Expected behavior

"headers": {
"return-path": "[email protected]",


### Operating System

Debian

### n8n Version

1.79.3

### Node.js Version

As in latest Docker container

### Database

SQLite (default)

### Execution mode

main (default)
@Joffcom
Copy link
Member

Joffcom commented Feb 24, 2025

Hey @vco1,

We have created an internal ticket to look into this which we will be tracking as "GHC-943"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Feb 24, 2025
@Joffcom
Copy link
Member

Joffcom commented Feb 24, 2025

Hey @vco1,

You mentioned "as of 1.79.3" does this mean it was ok in previous versions and if so which version did you upgrade from?

@Joffcom Joffcom added the Needs Feedback Waiting for further input or clarification. label Feb 24, 2025
@vco1
Copy link
Author

vco1 commented Feb 24, 2025

It was definitely ok in the previous version(s) that I used. I don't exactly know which one that was, but it was the previous 'latest' version from the docker hub (1.79.2?).
The new behavior broke a check on the from address in my workflow. So I'm confident this has been changed.

@Joffcom
Copy link
Member

Joffcom commented Feb 24, 2025

Hey @vco1,

1.79.2 would have been latest but so would 1.78.x do you know when you did the previous upgrade?

@Joffcom Joffcom added Needs Feedback Waiting for further input or clarification. and removed Needs Feedback Waiting for further input or clarification. labels Feb 24, 2025
@vco1
Copy link
Author

vco1 commented Feb 24, 2025

I tested with multiple older versions. And it turned out this issue isn't caused by the n8n version. As it seems the output is dependent on the value in the "Format" field.
If format is set to "Simple", the headers are shown without the fieldnames repeated. Like this:
"from": "Amazon Web Services <[email protected]>",
When the format is set to "Resolved" the output changes to:
"from": "From: Amazon Web Services <[email protected]>",.
Sorry for the confusion.

@Joffcom Joffcom removed the Needs Feedback Waiting for further input or clarification. label Feb 24, 2025
@Joffcom
Copy link
Member

Joffcom commented Feb 24, 2025

Hey @vco1,

No problem at all, I will get this moved over to be looked at in more detail.

@Joffcom Joffcom added Needs Feedback Waiting for further input or clarification. In Review We are reviewing the issue and removed Needs Feedback Waiting for further input or clarification. labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review In Review We are reviewing the issue
Projects
None yet
Development

No branches or pull requests

2 participants