Ticket #3261 (closed defect: Not Reproducible)

Opened 7 months ago

Last modified 4 weeks ago

Mailprocessor.py DNS lookup failes due to last char truncated in "From:" field

Reported by: zenoss Owned by: kkearney
Priority: 3 - Medium Milestone: Blue Crab
Component: ZenEvents Version: 2.1.3
Keywords: zenoss-2.2.1-proposed Cc:
Community Patch Attached: Deployed @ Customer:
Installer: Any/All Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description

Last char of "From:" being stripped causing DNS lookup of
hostname to fail entire script

/usr/local/zenoss/Products/ZenEvents/MailProcessor.py", line 64

orig: fromAddr = message.get('From').split('@')[1][:-1]
change: fromAddr = message.get('From').split('@')[1]

I have tested fix, works well for me :)

PJP13

Attachments

MailProcessor.diff (0.9 kB) - added by zenoss 4 months ago.
Diff against 2.2.3

Change History

Changed 7 months ago by ecn

  • keywords zenoss-2.2.1-proposed added; Mailprocessor removed
  • milestone set to zenoss-2.2.1

Changed 7 months ago by ecn

  • milestone changed from zenoss-2.2.1 to zenoss-2.3

Changed 4 months ago by zenoss

Diff against 2.2.3

Changed 3 months ago by bbibeault

  • reviewed set to 0

Changed 2 months ago by bbibeault

  • milestone changed from zenoss-2.3 to zenoss-2.4

Changed 4 weeks ago by kkearney

  • status changed from new to backlog
  • installer set to Any/All

No example of a failing case, so I can't reproduce the issue. If a test e-mail can be generated that causes this issue, then please re-open the ticket and add in the e-mail text, like in the new unit-test testMailProcessor.py

Changed 4 weeks ago by kkearney

  • owner changed from ecn to kkearney

Changed 4 weeks ago by kkearney

  • status changed from backlog to closed
  • resolution set to Not Reproducible
Note: See TracTickets for help on using tickets.