From owner-freebsd-questions@FreeBSD.ORG Sat Apr 2 12:55:06 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FA4416A4CE for ; Sat, 2 Apr 2005 12:55:06 +0000 (GMT) Received: from t-x.dignus.nl (t-x.dignus.nl [83.219.88.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D1F043D46 for ; Sat, 2 Apr 2005 12:55:05 +0000 (GMT) (envelope-from colin@kenmore.kozy-kabin.nl) Received: from localhost (localhost.dignus.nl [127.0.0.1]) by t-x.dignus.nl (Safehouse) with ESMTP id 063FC1A70C; Sat, 2 Apr 2005 14:52:38 +0200 (CEST) Received: from kenmore.kozy-kabin.nl (colin-home [62.251.72.148]) by t-x.dignus.nl (Safehouse) with ESMTP id B80B21A6B9; Sat, 2 Apr 2005 14:52:31 +0200 (CEST) Received: from kenmore.kozy-kabin.nl (localhost.kozy-kabin.nl [127.0.0.1]) by kenmore.kozy-kabin.nl (Postfix) with ESMTP id CE5F36267; Sat, 2 Apr 2005 14:54:57 +0200 (CEST) Received: from localhost (colin@localhost)j32CsuSP094075; Sat, 2 Apr 2005 14:54:57 +0200 (CEST) (envelope-from colin@kenmore.kozy-kabin.nl) Date: Sat, 2 Apr 2005 14:54:56 +0200 From: "Colin J. Raven" To: Giorgos Keramidas In-Reply-To: <20050402124754.GB6829@gothmog.gr> Message-ID: <20050402145327.A9329@kenmore.kozy-kabin.nl> References: <20050402140601.D9329@kenmore.kozy-kabin.nl> <20050402124754.GB6829@gothmog.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by RemSPAMd at ph230.plushosting.nl cc: freebsd-questions@freebsd.org Subject: Re: *attaching* a file to /usr/bin/mail message X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2005 12:55:06 -0000 On Apr 2 at 15:47, Giorgos Keramidas launched this into the bitstream: > On 2005-04-02 14:08, "Colin J. Raven" wrote: >> Does anyone happen to know how you would *attach* *not readin the >> contents of, but actually *attach*) a file using /usr/bin/mail? > > Not very easily, is one answer. You can probably get away with uuencode > output filtered to the standard input of mail(1), but that's not really > a "MIME attachment". > >> On my system mail has no "-a" (attach) flag, and some Googling told me >> mailx might solve the problem, but /usr/bin/mailx just invokes mail.... > > Other mail user agents do have a -a flag though. At least mail/mutt > does and I've used it successfully in the past. If you are not stuck > with mail(1) only, you can always use mutt for this. > > mutt -a /path/to/file recipient.address@example.net I'm not stuck with mail, I use it with some shell scripts....but yeah, I guess I could use mutt....there's an idea I hadn't previously considered. Thanks!!! Regards, -Colin