Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Bob Proulx Newsgroups: gnu.utils.bug Subject: Re: uuencode (GNU sharutils) 4.7 Date: Mon, 22 Feb 2016 21:43:24 -0700 Lines: 29 Approved: bug-gnu-utils@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1456202612 10799 208.118.235.17 (23 Feb 2016 04:43:32 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-gnu-utils@gnu.org To: srihari D Envelope-to: bug-gnu-utils@gnu.org Mail-Followup-To: srihari D , bug-gnu-utils@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 96.88.95.61 X-BeenThere: bug-gnu-utils@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU utilities List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.utils.bug:2195 srihari D wrote: > We are experiencing issues with uuencode, we wanted to send files as > attachments by using uuencode, but it's displaying the contents of file as > body of the email. Below is the syntax being used, please help me on this > issue. > > uuencode myfile.txt Display_name.txt|mail haridusi.us@gmail.com The above does not "attach" the file to the email. The above inserts the output of uuencode into the body of the message. There is no attachment in the above. In the above uuencode is working as it has been designed to work. All is correct. These days you probably should want to use MIME attachments instead of uuencode. I am not saying anything bad about uuencode. It does exactly what it does and the command is still needed in order to access uuencoded files. But these days MIME attachments are generally the prefered method. I hesitate to suggest a way to do attachments because it depends so much upon your environment. But 'mutt' handles attachments well. echo Attached is the myfile.txt file | mutt -s "subject line here" -a myfile.txt -- haridusi.us@gmail.com Bob