retitle 577564 [bts] Use mailx instead of mail to send mail
thanks

On Tue, Apr 13, 2010 at 11:55 AM, Filipus Klutiero <[email protected]> wrote:
> On April 13, 2010 11:11:17 am James Vega wrote:
>> On Tue, Apr 13, 2010 at 3:34 AM, Filipus Klutiero <[email protected]> wrote:
>> > On April 12, 2010 10:26:57 pm James Vega wrote:
>> >> On Mon, Apr 12, 2010 at 02:44:04PM -0400, Filipus Klutiero wrote:
>> >> > bts is failing the same way on 2 machines on 2 tested:
>> >> >
>> >> > $ LANG=C bts tags 407598 - fixed-upstream
>> >> > User-Agent: devscripts bts/2.10.62: No such file or directory
>> >> > bts: mail:
>> >> > chea...@vinci:~$
>> >> >
>> >> > This happens with version 2.10.61 (testing) too. It seems unusable.
>> >> > I'm not using bts regularly, but it would be surprising that bts was
>> >> > completely broken.
>> >>
>> >> The part of the script in which this occurs is where we fork/exec the
>> >> mail process.  It basically boils down to:
>> >>
>> >> printf "tags 407598 - fixed-upstream\nthanks\n" | mail -s "tagging
>> >> 407598" -a "User-Agent: devscripts bts/2.10.62" [email protected]
>> >>
>> >> Although the above isn't exactly what's happening, does that work?  The
>> >> error message you're getting seems like it may be due to not finding
>> >> mail, but I'd expect to see more than just "No such file or directory".
>> >
>> > It doesn't work. The output for your test was
>> > User-Agent: devscripts bts/2.10.62: No such file or directory
>> >
>> > This happens because mail is provided by heirloom-mailx, for which -a
>> > means:
>> >
>> > -a file
>> >  Attach the given file to the message.
>>
>> Interesting.  That throws a wrench in the works.  Do you know how one
>> would specify extra mail headers using heirloom-mailx?
>
> I'm afraid not. I wasn't aware of heirloom-mailx's existence 24 hours ago.
> http://heirloom.sourceforge.net/mailx_history.html has something interesting
> to say:
> Portable scripts should either invoke mail without any options or should use
> the standardized mailx interface.

Ah, that's the issue.  We're invoking mail instead of mailx.  I'll
double check that all the mailx-providing tools support our usage, but
that looks like the right way to go.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>




--
To unsubscribe, send mail to [email protected].

Reply via email to