• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 908
  • Last Modified:

uuencode unreadable on mobile devices

I'm emailing csv files from AIX 5.3 using uuencode to attach the file.  If the user opens it on a mobile the device the file is unreadable.  I'm looking for alternative to uuencode.  With that said I've tried installing mutt and cannot get it to work so I was hoping someone knew of another way.
2 Solutions
Mime encode?
Perl with MIME modules that will (deal with control character) using quoted-printables.
Why shouldn't "mutt" work on AIX? Where did you get it from?

I successfully installed the RPM from the AIX toolbox and it works just fine:


Please note that the mutt package requires gettext (also available in the toolbox).

A propos Mime:

uuencode can create Mime Base64 encoded  output. Use its "-m" flag.

I just went through exactly the same thing, where uuencoded csv files could not be opened on iphones. I solved the problem in two steps. First, instead of uuencoding the csv file I converted them to an xls file on the host (note this is NOT simply changing the file extension), then uuencoded those and emailed. Works perfectly now  using sendmail with the file as an attachment.

Use the following perl program to convert the csv files to xls on the AIX system. Then uuencode and email. Note: you must have perl, and if it is not installed in /usr/bin, change the first line to the path (whence perl) where it is.

my $infile = shift;
usage()  unless defined $infile && -f $infile;
use Spreadsheet::WriteExcel;
my $outfile = $infile;
$outfile =~ s/csv/xls/;
my $workbook = Spreadsheet::WriteExcel->new($outfile);
my $worksheet = $workbook->add_worksheet();
open(FH,$infile) or die "Cannot open file: $!\n";
my ($x,$y) = (0,0);
while (<FH>){
 @list = split /\t/,$_;
 foreach my $c (@list){
    $worksheet->write($x, $y++, $c);

I named this v2x, but use any name you like. Usage is:

v2x inputfile.csv

output is:         inputfile.xls
pncorpAuthor Commented:
Thanks, I ended up getting Mutt to work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now