RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1477476 - libreport-plugin-mailx don't respect the EmailFrom/EmailTo settings when write it in '"'
Summary: libreport-plugin-mailx don't respect the EmailFrom/EmailTo settings when wri...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libreport
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: abrt
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-02 08:01 UTC by Frank Büttner
Modified: 2018-06-15 08:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-15 08:02:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Frank Büttner 2017-08-02 08:01:36 UTC
Description of problem:
When using it to send an e-mail the header of the mail contains an incorrect "From"/"To" field.

But the from/to part at the smtp transfer part are ok.
The error happens after the data command.


Version-Release number of selected component (if applicable):
libreport-plugin-mailx-2.1.11-35

How reproducible:
Every time

Steps to Reproduce:
1. let an application crash


Actual results:
The generated email will contain in invalid "From"/"To" field in the header.
From: <"foo"@localhost.localdomain>
To: <"bar" @localhost.localdomain>

But the the smtp part before the data command:
MAIL FROM:<foo> SIZE=15023
RCPT TO:<bar> ORCPT=rfc822;bar
DATA


Expected results:
An correct mail header.


Additional info:
/etc/libreport/plugins/mailx.conf:
EmailFrom="foo"
EmailTo="bar"

using:
EmailFrom=foo
EmailTo=bar
will work. But on http://abrt.readthedocs.io/en/latest/examples.html the fields are written with '"'.

Comment 2 Martin Kutlak 2018-06-15 08:02:17 UTC
Thank you for the report.

The example in the documentation is actually wrong because we don't support quoted values in configuration files.

I've corrected the example and added a line with information explaining what is expected in the configuration file.

Updated docs:
https://abrt.readthedocs.io/en/latest/conf.html#configuration-files
https://abrt.readthedocs.io/en/latest/examples.html#examples

PR changing the docs:
https://github.com/abrt/doc/pull/15


Note You need to log in before you can comment on or make changes to this bug.