Skip to content

[Bug]: Email message input (Pipelines) ignores IMAP folder when using Mail Server metadata #6810

@dulfe

Description

@dulfe

Apache Hop version?

2.17

Java version?

17.0.18

Operating system

Windows

What happened?

"Email messages input" in a Pipeline fails to honor "IMAP folder", it always reads the emails from the INBOX, but only when using a predefined "Mail Server Connection" from metadata.

Step to reproduce the issue

  • Create a Mail Server Connection in Metadata (IMAP Server)
  • Create a pipeline
  • Add "Email messages input"
  • In GENERAL, select the Mail Server Connection you created in the first step and make sure to select PROTOCOL = IMAP
  • In SETTINGS > IMAP SETTINGS, add an IMAP folder or use the folder selector.
  • Click on "Test folder" to make sure the folder exists
  • Set "Retrieve" to "Get all messages"
  • In FIELDS, add a field for FOLDER NAME, SENDER and BODY
  • Click on "Preview"

Current behavior:

  • It retrieves all messages from the INBOX folder instead of those from the given folder.
  • The field FOLDER NAME shows an ID instead of the folder name.

Expected behavior:

  • Should return ALL the messages from the selected IMAP Folder.

Notes

  • If you manually enter the IMAP credentials instead of using a metadata connection, it works as expected.

Issue Priority

Priority: 3

Issue Component

Component: Pipelines

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions