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.

The reason these 2 PCs had heirloom-mailx is that they both have exim, and 
exim4-base recommends mailx. heirloom-mailx started providing mailx in 2008. I 
would have thought bsd-mailx would have been picked by default to provide 
mailx, but it seems that's not the case. heirloom-mailx is used.

One thing complicated a lot the analysis of this issue. The management of the 
mailx alternative seems to be broken. If you install/uninstall mailx providers 
to fix this issue, please pay attention to what happens to mail(1). It broke at 
some point on the 2 PCs. mailutils may well be the culprit. It provides 
mail(1) directly in /usr/bin/mail, which is usually an alternative link. This 
would deserve another bug report. I think /usr/bin/mail disappears sometimes, 
even when a mailx provider is present.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to