On Wed 12 Jul 2017 at 23:32:32 (-0400), Gary Dale wrote: > On 12/07/17 04:51 PM, Greg Wooledge wrote: > >On Wed, Jul 12, 2017 at 03:58:07PM -0400, Gary Dale wrote: > >>I just spent about an hour with Google trying to fix a bash script that > >>worked last year. The problem was that it stopped sending attachments. > >> > >>In the course of my research I found that mail / mailx over the years has > >>used a variety of flags for attachments but now seems to have dropped the > >>capability entirely. At one point -a <filename> would attach a file. At > >>another, mailx adopted -A <filename> to do it. Lately neither program seems > >>to support attachments. > >In jessie, we had bsd-mailx and heirloom-mailx. The latter had -a for > >attachments, and was awesome and perfect, and is clearly what you were > >using. > > > >For some reason, Debian "replaced" heirloom-mailx with s-nail in stretch, > >but they didn't *really* replace it. They left it half-done, with no > >mailx symlink, and no mail program either. Then, you could install > >bsd-mailx to get the old horrible mailx that doesn't do attachments, > >which is obviously what happened here. > > > >On <https://wiki.debian.org/NewInStretch> I suggest manually overriding > >the /etc/alternatives/mailx symlink to point to s-nail. If that has any > >drawbacks for people formerly using heirloom-mailx, I'm not aware of them. > Except that I don't recall ever having installed bsd-mailx.
That may depend on how you installed Debian. bsd-mailx appears to be Priority: optional in stretch, but if you upgraded from jessie, it should already have been present as Priority: standard. All that in the absence of any dependencies, of course. Cheers, David.