On Tue, Apr 13, 2010 at 11:11:17AM -0400, James Vega wrote:
> On Tue, Apr 13, 2010 at 3:34 AM, Filipus Klutiero <chea...@gmail.com> 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" cont...@bugs.debian.org
> >>
> >> 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?

After further investigation, there isn't a way to specify extra headers
with standard mail/mailx.  In light of that, it looks like the most
robust option is to require either of $DEBEMAIL or $EMAIL to be set in
the environment and drop support for using mail/mailx to send emails.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to