jenkinsci / poll-mailbox-trigger-plugin

A Jenkins plugin, to poll an email inbox, and trigger jobs based on new emails.
https://plugins.jenkins.io/poll-mailbox-trigger-plugin/
MIT License
40 stars 32 forks source link

subjectContains not triggering when there is more text in subject #40

Open PetherPettersson opened 6 years ago

PetherPettersson commented 6 years ago

I am trying to get a build to trigger when we receive an email notifying the team of a new software release. The problem is that the 'subjectContains' trigger will not trigger on this release subject which contains platform, release name, version, etc. But it will if I remove every other text but 'release' and leave some release numbering, or add whitespace.

I'm using just parts of the subject in this issue as it shows the problem.

Steps to reproduce

How can we reproduce the issue

  1. subjectContains=release
  2. Receive email with a0.01release in subject
  3. Email will not trigger build when polling

Expected behaviour

Build will trigger.

Actual behaviour

Build will not trigger.

Server configuration

Operating system: ubuntu-17.10.1

Jenkins Version: Jenkins ver. 2.89.4

Plugin Version: 1.026

Mail Server: imap.gmail.com

Additional Steps/Questions

'Testing Connection' with four unread emails. Email : 0.01release Email: 0.01release( Email: a0.01release Email: a0.01 release

All but the 'a0.01release' is found.

Connecting to the mailbox... Found properties:

Result: Success!