[wellylug] Problem with attachment
Peter Lynch
Peter.Lynch at acc.co.nz
Wed Mar 4 10:58:25 NZDT 2009
I have the following script which runs daily on my Debian Lenny server.
#! /bin/bash
export maildate=`date --date=yesterday +'%h %e'`
sudo less /var/log/mail.log | grep "$maildate" > mail.txt
uuencode mail.txt mail.txt | mail -s "Mail log" xxx at xxx.co.nz
When I view the mail through SquirrelMail (version 1.4.15), it does not
recognise the file as being an attachment. It simply displays this:
begin 644 mail.txt
M36%R("`S(#`P.C`P.C$U(&AE;&5N82!D8V-I9F1;,3<X-UTZ(#$N,BXW-"!R
M96IE8W1E9"!M97-S86=E<R!T;R`P('1A<F=E=', at 86YD(&1I<V-A<F1E9"!M
M97-S86=E<R!T;R`P('1A<F=E=', at 86UO;F<@,"!T;W1A;"!S:6YC92`P,R\P
M,B\P.2`P,#HP,#HQ-`I-87(@(#,@,#`Z,3`Z,#(@:&5L96YA('!O<W1F:7 at O
M<&EC:W5P6S<V-#!=.B`Q-#5#-C,V038T,#`R.B!U:60],3`P,"!F<F]M/3QP
M971E/@I-87(@(#,@,#`Z,3`Z,#(@:&5L96YA('!O<W1F:7 at O8VQE86YU<%LR
M,3 at P-%TZ(#$T-4,V,S9!-C0P,#(Z(&UE<W-A9V4M:60]/#(P,#DP,S`R,3$Q
M,#`R+C$T-4,V,S9!-C0P,#)`:&5L96YA+FMA<F]R:2YN970N;GH^"DUA<B`@
M,R`P,#HQ,#HP,B!H96QE;F$@<&]S=&9I>"]Q;6=R6S(T,S,P73H@,30U0S8S
M-D$V-#`P,CH at 9G)O;3T\<&5T94!H96QE;F$N:V%R;W)I+FYE="YN>CXL('-I
M>F4].38Q-C4L(&YR8W!T/3$@*'%U975E(&%C=&EV92D*36%R("`S(#`P.C$P
M.C`T(&AE;&5N82!A;6%V:7-;,3,X,#5=.B`H,3,X,#4M,#,I("@A*4-L86U!
M5BUC;&%M9#H at 0V%N)W0 at 8V]N;F5C="!T;R!53DE8('-O8VME="`O=F%R+W)U
M;B]C;&%M878O8VQA;60N8W1L.B`R+"!R971R>6EN9R`H,BD*36%R("`S(#`P
M.C$P.C$P(&AE;&5N82!A;6%V:7-;,3,X,#5=.B`H,3,X,#4M,#,I("@A(2E#
...
Is there something wrong with my script, or something I need to
configure in SquirrelMail?
Regards
Peter Lynch
--------------------------------------------------------------------------------------
Disclaimer:
"The information contained in this document is confidential to the addressee(s) and
may be legally privileged. If you are not the intended recipient you are notified
that any use, distribution, amendment, copying of the message or attachments is
strictly prohibited. Any view or opinions expressed are those of the author and may
not be those of the organisation to which the author belongs. No guarantee or
representation is made that this communication is free of errors, viruses, or interference.
If you have received this e-mail message in error please delete it and notify me. Thank you.
We accept no responsibility for changes made to this email or to any attachments after
transmission from the office."
--------------------------------------------------------------------------------------
More information about the wellylug
mailing list