Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

#10354 closed enhancement (wontfix)

mailx (e.g. mailx-heirloom) is not supported to send notifications

Reported by: andy.melnikov@… Owned by:
Priority: normal Milestone:
Component: notification Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If I set the following in trac.ini, it doesn't work:

email_sender = SendmailEmailSender
sendmail_path = mailx

The error message I get is:

Sendmail failed with (2, More than one file given with -f 
Usage: mailx -eiIUdEFntBDNHRV~ -T FILE -u USER -h hops -r address 
-s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS 
-S OPTION users), 
command: '[u'mailx', '-i', '-f', u'xxx@yyy.com', u'xxx@gmail.com', u'yyy@gmail.com']

The reason for that is that -r flag should be used instead of -f in case of mailx. So it would be nice to have mailx supported, for example, by having MailxEmailSender in addition to SendmailEmailSender.

Is there any known workarounds?

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 13 years ago

Resolution: wontfix
Status: newclosed

As the name of the component implies, we support sendmail-compatible mailers, and therefore the command-line options of sendmail. You could create a MailxEmailSender (in a single-file plugin), but adding a complete new component just for one changing option seems a bit overkill. You could also use a wrapper script that calls mailx with the right options, something like:

#!/bin/bash
shift 2
exec mailx -r "$@"

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.