Subject: | Vista format |
Date: | Tue, 19 Mar 2013 23:37:46 +0000 |
To: | bug-Win32-Outlook-IAF [...] rt.cpan.org |
From: | Peter Fox <cpan [...] roestockfox.co.uk> |
Thanks for the module. I've been trying to help out a neighbour using
vista internet mail who had forgotten her pop3 password. I exported
her connection settings to an iaf file and tried using the module as
described in the documentation, but it would only print out the first
letter of the pop username and password.
This is of course because the text in (the vista version of) the iaf
file is unicode, so every other byte (in this case) is null,
prematurely ending the string.
I didn't properly solve this, but I added debugging code in your
module to print out the name of the field being processed, and the
valid characters as they were decoded. This was all I needed to find
the correct password.
A better solution might be to add a method which will return the
result as a char array, rather than string, so that the result is not
terminated prematurely. The user can then filter the null bytes, or
even use a proper unicode interpretation for each byte pair.
I'm using the module version 0.96 in perl 5 version 12 on gentoo.
--
Peter Fox
http://www.roestockfox.co.uk/