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

Option for a Jenkins job to process emails without marking them as read on the mail server #43

Open
1 task done
TheCodeArtist opened this issue Jun 6, 2018 · 1 comment

Comments

@TheCodeArtist
Copy link

TheCodeArtist commented Jun 6, 2018

Steps to reproduce

Setup a Jenkins job triggerred by "Poll Mailbox Trigger"

Expected behaviour

User should have an option (checkbox) to NOT mark emails on the server as read.
The default configuration should be backward compatible i.e. continue to mark processed emails as read by default.

The goal is to process incoming emails of a human's inbox
to trigger required background actions to have the necessary work-products avialabel by the time teh human reads the email.

For example, upon receiving a bug report email when i'm asleep,
sync the corresponding branch, trigger a local build and have the necessary outputs
ready for me to try things out once i wake-up and read the email.
( It is important and preferred that the original email received is NOT marked as read without me reading it! )

We can avoid repeatedly processing the same email multiple times using:
schedule <cron/jenkins pattern to specify poll-period>
receivedXMinutesAgo=poll-period

Actual behaviour

Currently unable to locate any option in the trigger configuration options to to avoid marking emails as read on the email-server.

Server configuration

Operating system:
Linux

Jenkins Version:
2.107.3

Plugin Version:
1.026

Mail Server:
Any

Additional Steps/Questions

  • Do you know if you're you able to connect to to your mail server via IMAP? Yes
@TheCodeArtist
Copy link
Author

TheCodeArtist commented Jun 6, 2018

Looking at PollMailboxTrigger.java:317 it appears we could also support the flow where,
the build-job sets some environment variable,
based on which Poll Mailbox decides whether to mark the email as Read or keep it Unread.

Correct?...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant