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.
LVL 1
pncorpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Mime encode?
Perl with MIME modules that will (deal with control character) using quoted-printables.
0
woolmilkporcCommented:
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:

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

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.

wmp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
carlmdCommented:
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.

#!/usr/bin/perl
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>){
 chomp;
 @list = split /\t/,$_;
 foreach my $c (@list){
    $worksheet->write($x, $y++, $c);
 }
 $x++;$y=0;
}
close(FH);
$workbook->close();

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

v2x inputfile.csv

output is:         inputfile.xls
0
pncorpAuthor Commented:
Thanks, I ended up getting Mutt to work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.