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

email subject is ???? #60

Open
a18792721831 opened this issue Jan 16, 2020 · 1 comment
Open

email subject is ???? #60

a18792721831 opened this issue Jan 16, 2020 · 1 comment

Comments

@a18792721831
Copy link

How can we reproduce the issue

  1. Create a project use poll-mailbox-trigger-plugin;
  2. Set subjectContains=,schedule is */1 * * * *
  3. Send an email:
    subject : test build
    content :
    jiayq:

你好。

祝好!

2020-01-16 09:26:50
4. The project will be executed
echo "$pmt_content" echo "$pmt_contentType" echo "$pmt_subject"
5. console logs:
`

<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style>
jiayq:

???


???

???

2020-01-16    09:31:19

  


 
 ??? 
 
 ?????? 
 
 ??????     

 

 ??? ??????????????? 5 ??    

 

 ??? (86 )   010- 5301 2921  

 

 ???(86)  010-187 9272 1831 


 ???   [email protected] 


`

Operating system:centos7:3.10.0-862.el7.x86_64

Jenkins Version:Jenkins ver. 2.204.1

Plugin Version:1.026

Mail Server:imap.qiye.163.com

poll mailbox trigger log:
`
Polling started on Jan 16, 2020 9:38:00 AM
Polling for the job test_mail_qq
Looking nodes where the poll can be run.
Looking for a candidate node to run the poll.
Looking for a node with no predefined label.
Trying to poll with the last built on node.

Polling on master.
Connecting to the mailbox...
[Poll Mailbox Trigger] - Connected!
Found properties:

  • [attachments:IGNORE]
  • [folder:INBOX]
  • [host:imap.qiye.163.com]
  • [mail.debug:false]
  • [mail.debug.auth:false]
  • [mail.imaps.host:imap.qiye.163.com]
  • [mail.imaps.port:993]
  • [password:***]
  • [receivedXMinutesAgo:1440]
  • [storeName:imaps]
  • [username:[email protected]]
    Connected to mailbox. Searching for messages where:
  • [flag is unread]
  • [subject contains - filter not set]
  • [received date is greater than '2020/01/15 09:38:01 AM']
    ...
    Searching folder...
    Found matching email(s) : 0

Polling complete. Took 0.34 sec.
No changes.
`

Receive E-mail garbled, I think because cause the failure of parsing the theme, matching failure, so as to make the plug-in cannot work normally.

So, please help me to solve this problem.

@a18792721831
Copy link
Author

a18792721831 commented Jan 16, 2020

console logs:

<html><head><meta charset="GB2312"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span>jiayq</span>:</div><div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><br></div><div>???</div><div><br></div></blockquote></div><div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><span></span></div></blockquote></div>
<div><br></div><div style="text-align: left;">???</div><div style="text-align: right;"><br></div><div style="text-align: right;">???</div><div style="text-align: right;"><br></div><div style="text-align: right;">2020-01-16&nbsp; &nbsp;&nbsp;09:26:50</div><div><br></div><div><span>&nbsp;&nbsp;<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><br></div><div style="margin: 10px; font-size: 10pt;"><hr align="left" color="#b5c4df" size="1" style="font-family: ????; font-size: 14px; line-height: 21px; width: 210px; height: 1px;"><div style="font-size: 14px; line-height: 21px;">&nbsp;<div style="color: rgb(192, 192, 192); font-size: 13px; line-height: normal;">&nbsp;<font face="????">???</font>&nbsp;</div>&nbsp;<div style="font-family: Verdana; color: rgb(192, 192, 192); font-size: 13px; line-height: normal;">&nbsp;<span style="font-family: ????;">??????</span>&nbsp;</div>&nbsp;<div style="font-family: Verdana; color: rgb(192, 192, 192); font-size: 13px; line-height: normal;">&nbsp;<span style="font-family: ????;">??????</span>&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">&nbsp;<o:p>&nbsp;</o:p>&nbsp;</span>&nbsp;</div><div style="font-family: Verdana; color: rgb(192, 192, 192); font-size: 13px; line-height: normal;"><br></div><div style="font-family: Verdana; color: rgb(192, 192, 192); font-size: 13px; line-height: normal;"><img src="cid:_Foxmail.1@db3d9de3-2f8e-7294-03da-070060afc16d" style="color: rgb(0, 0, 0); font-family: ????; font-size: 9pt; line-height: 1.5; background-color: window;"></div>&nbsp;<p class="MsoNormal" style="font-family: '\''Times New Roman'\''; margin: 0cm 0cm 0pt; font-size: 13px; text-align: justify; color: rgb(192, 192, 192); line-height: normal;">&nbsp;<span style="font-family: ????;">???</span>&nbsp;<span style="font-family: ????;">???????????????</span>&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">5</span>&nbsp;<span style="font-family: ????;">??</span>&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">&nbsp;<o:p></o:p>&nbsp;</span>&nbsp;</p>&nbsp;<p class="MsoNormal" style="margin: 0cm 0cm 0pt; font-size: 13px; text-align: justify; color: rgb(192, 192, 192); line-height: normal;">&nbsp;<span style="font-family: ????;">???</span><a href="tel:?86?10-5301 2921">&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">(86</span>&nbsp;<span lang="EN-US"><font face="????">) &nbsp;</font></span>&nbsp;0<span lang="EN-US" style="font-family: Arial, sans-serif;">10-</span>&nbsp;<span style="font-family: Arial, sans-serif; background-color: window;" class="">5301 2921</span>&nbsp;</a>&nbsp;</p>&nbsp;<p class="MsoNormal" style="font-family: '\''Times New Roman'\''; margin: 0cm 0cm 0pt; font-size: 13px; text-align: justify; line-height: normal; color: rgb(192, 192, 192);">&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">???<a href="tel: (86) 10-187 9272 1831">(86) &nbsp;010-187 9272 1831</a></span>&nbsp;</p><p class="MsoNormal" style="font-family: '\''Times New Roman'\''; margin: 0cm 0cm 0pt; font-size: 13px; text-align: justify; line-height: normal; color: rgb(192, 192, 192);"><br></p><p class="MsoNormal" style="font-family: '\''Times New Roman'\''; margin: 0cm 0cm 0pt; font-size: 13px; text-align: justify; color: rgb(192, 192, 192); line-height: normal;">&nbsp;<span style="font-family: ????;">???</span>&nbsp;<font color="#0000ff" style="color: purple; text-decoration: none !important;">&nbsp;<span lang="EN-US" style="font-family: Arial, sans-serif;">&nbsp;<a href="mailto:[email protected]">[email protected]</a>&nbsp;</span></font></p><div id="box" class="box"><br></div></div></div></span></div>
</body></html>

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