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

Re: [cobalt-users] cmu.xml question about vacation and full name



> Hello everyone,
> I'm trying to read the cmu.xml file, so I can use this file to import
> a site on a other system than Cobalt. However, when you look at the
> cmu.export, you can see the following entry:
> <vacationmsg value =
> "VGhhbmsgeW91IGZvciB5b3VyIGVtYWlsLg0KSSB3aWxsIHJlcGx5IHRvIHlvdSBhcyBzb29uIGFzIHBvc3NpYmxlLiA="/>
> How is this encrypted? Unfortunately I could not find anywhere in the
> scripts how this string is converted to a normal vacation message.
> "fullname" has the same.
> Does anyone know how to decode this? Thanks in advance :)
> regards,
> Hans

CMU transforms strings that could have localized infomation using mime base64
encoding.  This is required for Japanese migrations since they contain
double-byte chars that could break the xml parsing.

Here is a script to decode it:
#!/usr/bin/perl

use MIME::Base64;

if(!$ARGV[0]) {
    print "USAGE: $0 string\n";
    exit 1;
}
print decode_base64($ARGV[0]), "\n";

Use it like this:
./test.pl VGhhbmsgeW91IGZvciB5b3VyIGVtYWlsLg0KSSB3aWxsIHJlcGx5IHRvIHlvdSBhcyBzb29uIGFzIHBvc3NpYmxlLiA 

Jeff-