bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upgrading from RHEL5x to RHEL 7x


From: Prasad Kumar
Subject: Re: Upgrading from RHEL5x to RHEL 7x
Date: Mon, 4 Apr 2016 20:41:04 +0000

Hi Bob,

First I want to Thank you for looking into my issue.

Firstly uuencode versions of RHEL7
uuencode --version
uuencode (GNU sharutils) 4.13.3
Copyright (C) 1994-2013 Free Software Foundation, Inc., all rights reserved.
This is free software. It is licensed for use, modification and
redistribution under the terms of the
GNU General Public License, version 3 or later
    <http://gnu.org/licenses/gpl.html>


uuencode versions of RHEL5
 uuencode --version
uuencode (GNU sharutils) 4.6.1
Copyright (C) 1994, 1995, 1996, 2002, 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Test Cases are Below
----------------------------
1. Created Script in RHEL7 and RHEL 5 Instance for
umask 02
echo "Now is the time" > testfile1
uuencode testfile1 testfile1 > output1

Got Same output in both Instance.

begin 664 testfile1
03F]W(&ES('1H92!T:6UE"@``
`
end

2. Created Script in RHEL5
 uuencode Attachement_file.pdf Attachements.pdf > uuencode.data1
  md5sum uuencode.data1

Sent mail from RHEL5 ( the Attachment was good no Issues)
 mail -s "This is Attachment Mail" address@hidden < uuencode.data1
 

Saved and transfered the  uuencode.data1 to RHEL7 
Sent mail from RHEL7 (Attachment is Corrupted)
1. mail -s "This is Attachment Mail" address@hidden < uuencode.data1
The Attachment is not there instead I get Junk in Body of the mail.

begin 660 Attachements.pdf
M)5!$1BTQ+C0*)<?LCZ(*-2`P(&]B:@H\/"],96YG=&@@-B`P(%(O1FEL=&5R
M("]&;&%T941E8V]D93X^"G-T<F5A;0IXG+U;67,;N1'688$2J>*QDI8CD[)'
M-.F5=8QP#\;>7'O8+WG9M:KRHC=GLZF4I925A_S]=..8DUK9RG#M*I,?B,%\
M:#0:address@hidden;XUW]^N.E>_IS&O_ZG^ZF+6&6,QFFJ:7SW2_RW^+:;)3K^
MK_V)QC^_ZS(F


2. I sent mail with  -a option
echo "uuencode testing"|mail -s "This is Attachment Mail" -a uuencode.data1 
address@hidden

I got attachment uuencode.data1 to the mail but cannot open the file


3. Compared the   md5sum uuencode.data1 in both Systems RHEL 5 and RHEL 7 

  md5sum uuencode.data1

Got Same result
RHEL5>$md5sum uuencode.data1
caed0be19f6903c899ffc077b1fa8edc  uuencode.data1

RHEL7>$ md5sum uuencode.data1
caed0be19f6903c899ffc077b1fa8edc  uuencode.data1




Thanks and Regards
Prasad Kumar

________________________________________
From: Bob Proulx <address@hidden>
Sent: Monday, April 4, 2016 10:56 PM
To: Prasad Kumar
Cc: address@hidden
Subject: Re: Upgrading from RHEL5x to RHEL 7x

Prasad Kumar wrote:
> We are upgrading from RHEL 5.x to RHEL 7x.
>...
> Now even after we installed uuencode from shareutils , the same
> command is not working in RHEL 7 linux.
>
> We get attachment as Junk Characters in the Email body for any
> attachment we send. This is happening with mail command used like
> below.
>
> $ uuencode Attachement_file.pdf  Attachements.pdf |mail -s "This is 
> Attachment Mail" address@hidden

I don't have easy access to test systems for RHEL 5 and 7 and
therefore can't easily try to recreate this problem.  But it seems
likely to me that the problem may just as easily be in the mail part
of the command.

> Can some one let me know what is this issue and how to resolve this.

Please reduce the problem size.  Please try uuencoding a small test
file on both systems and comparing the output produced.  Then if the
output is the same you know the problem is not the uuencode but the
mail side of things.  On the other hand if they are differen then
there will be a very small test case that can be shared in which to
further debug the problem.

  umask 02
  echo "Now is the time" > testfile1
  uuencode testfile1 testfile1 > output1

  cat output1
    begin 664 testfile1
    03F]W(&ES('1H92!T:6UE"@``
    `
    end

Hopefully a small test like that on both systems will show that the
output of uuencode is the same on both systems.  If not then we would
want to know the versions of each.

Additionally to look only at the mail side of the problem you can test
by creating a test file to mail using your problem file on your
working RHEL 5 system.

  uuencode Attachement_file.pdf Attachements.pdf > uuencode.data1
  md5sum uuencode.data1
    ... save this ...

Mail it from the RHEL 7 system.

  mail -s "This is Attachment Mail" address@hidden < uuencode.data1

Then copy that file to the RHEL 7 system that you suspect of problems.
Verify that the copy is correct be comparing the md5sum.  Then mail it
from there.

    ...copy file to RHEL 7 system ...
  md5sum uuencode.data1
    ... compare to verify that the copy was identical ...
  mail -s "This is Attachment Mail" address@hidden < uuencode.data1

If this second mail message is corrupted as you describe then again
you know the problem is in the mail side of things and not the
uuencode side of things since the file will have been identical in
both places.


Bob


reply via email to

[Prev in Thread] Current Thread [Next in Thread]