<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br><br>any news about this "issue"? The only way it works in my environment is "delete" the lines tan set_unicode_folders in IMAPTalk source code.<br><br>Thanks!<br><br>Manel Gimeno Zaragoza<br>magiza83@hotmail.com<br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: magiza83@hotmail.com<br>To: robm@fastmail.fm; info-cyrus@lists.andrew.cmu.edu<br>Subject: RE: UTF7 mailbox codification error<br>Date: Fri, 24 Feb 2012 09:09:01 +0100<br>CC: rjlov@fastmail.fm<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
Hello,<br><br>I've made some test trying to check all cases and the results are:<br><br>Case 1:<br> set unicode folder : 1<br> folder name: user.gdatmgim.SPAM (without any strange character)<br> tcpflow: <br><i> ...<br> 192.168.066.093.46301-192.168.066.092.00143: 2 select "user.gdatmgim.SPAM"<br><br> 192.168.066.092.00143-192.168.066.093.46301: * 0 EXISTS<br> ...</i><br> Internal exit: OK<br> Console Exit: OK<br> <br>Case 2:<br> set unicode folder : 0<br> folder name: user.gdatmgim.SPAM (without any strange character)<br> tcpflow:<br><i> ...<br> 192.168.066.093.46287-192.168.066.092.00143: 2 select "user.gdatmgim.SPAM"<br><br> 192.168.066.092.00143-192.168.066.093.46287: * 0 EXISTS<br> ...</i><br> Internal exit: OK<br> Console Exit: NOK<br><i> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3859, <$_[...]> line 1.<br> Warning only: IMAPTalk not using unicode_folders at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3860<br> Mail::IMAPTalk::_fix_folder_name('Mail::IMAPTalk=HASH(0x238a3b0)', 'user.gdatmgim.SPAM') called at /usr/local/share/perl5/Mail/IMAPTalk.pm line 1168<br> Mail::IMAPTalk::select('Mail::IMAPTalk=HASH(0x238a3b0)', 'user.gdatmgim.SPAM') called at ./test.pl line 105<br> main::Get_Fetch('user.gdatmgim.SPAM') called at ./test.pl line 86<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3861, <$_[...]> line 1.<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3859, <$_[...]> line 1.<br> Warning only: IMAPTalk not using unicode_folders at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3860<br> Mail::IMAPTalk::_fix_folder_name('Mail::IMAPTalk=HASH(0x257eee0)', 'user.gdatmgim.SPAM') called at /usr/local/share/perl5/Mail/IMAPTalk.pm line 1168<br> Mail::IMAPTalk::select('Mail::IMAPTalk=HASH(0x257eee0)', 'user.gdatmgim.SPAM') called at ./test.pl line 106<br> main::Get_Fetch('user.gdatmgim.SPAM') called at ./test.pl line 86<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3861, <$_[...]> line 1.</i><br><br> <br>Case 3:<br> set unicode folder : 1<br> folder name: user.dataaper.Comunicaci&APM-n Interna (with "&" character)<br> tcpflow:<br> <i> ...<br> 192.168.066.093.46290-192.168.066.092.00143: 2 select "user.dataaper.Comunicaci&-APM-n Interna"<br><br> 192.168.066.092.00143-192.168.066.093.46290: 2 NO Mailbox does not exist<br> ...</i><br> exit: NOK<br><i> Uncaught exception from user code:<br> IMAP error: Select failed for folder 'user.dataaper.Comunicaci&APM-n Interna' : IMAP Command : 'select' failed. Response was : no - Mailbox does not exist at ./test.pl line 105, <$_[...]> line 1.<br> at ./test.pl line 105<br> main::Get_Fetch('user.dataaper.Comunicaci&APM-n Interna') called at ./test.pl line 86</i><br><br>Case 4:<br> set unicode folder : 0<br> folder name: user.dataaper.Comunicaci&APM-n Interna (with "&" character)<br> tcpflow:<br><i> ...<br> 192.168.066.093.46292-192.168.066.092.00143: 2 select "user.dataaper.Comunicaci&APM-n Interna"<br><br> 192.168.066.092.00143-192.168.066.093.46292: * 0 EXISTS<br> ...</i><br> exit: NOK<br> <i> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3859, <$_[...]> line 1.<br> Warning only: IMAPTalk not using unicode_folders at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3860<br> Mail::IMAPTalk::_fix_folder_name('Mail::IMAPTalk=HASH(0x16713b0)', 'user.dataaper.Comunicaci&APM-n Interna') called at /usr/local/share/perl5/Mail/IMAPTalk.pm line 1168<br> Mail::IMAPTalk::select('Mail::IMAPTalk=HASH(0x16713b0)', 'user.dataaper.Comunicaci&APM-n Interna') called at ./test.pl line 105<br> main::Get_Fetch('user.dataaper.Comunicaci&APM-n Interna') called at ./test.pl line 86<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3861, <$_[...]> line 1.<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3859, <$_[...]> line 1.<br> Warning only: IMAPTalk not using unicode_folders at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3860<br> Mail::IMAPTalk::_fix_folder_name('Mail::IMAPTalk=HASH(0x1865ee0)', 'user.dataaper.Comunicaci&APM-n Interna') called at /usr/local/share/perl5/Mail/IMAPTalk.pm line 1168<br> Mail::IMAPTalk::select('Mail::IMAPTalk=HASH(0x1865ee0)', 'user.dataaper.Comunicaci&APM-n Interna') called at ./test.pl line 106<br> main::Get_Fetch('user.dataaper.Comunicaci&APM-n Interna') called at ./test.pl line 86<br> Please report to rjlov at /usr/local/share/perl5/Mail/IMAPTalk.pm line 3861, <$_[...]> line 1.<br></i><br>Case 1 OK<br><br>Case 2, it fails because set unicode folder is turned off.<br> <br>Case 3, we can see that once the folder name is passed to the method it change the name and add a "-" after the "&". Thats why the folder does not exist.<br> <br>Case 4, looks like is the correct way to do it, as when I turn off "unicode_folders" folder name is not modified and internally It works OK, but I get the exception or error that you can see (the same that in case 2)<br><br>It looks like set unicode folder has be turned on.<br><br>On the other hand, I've installed IMAPTalk from "cpan" and I have 2.01 version.<br>#perldoc perllocal<br>PERLLOCAL(1) User Contributed Perl Documentation PERLLOCAL(1)<br><br> Thu Feb 23 19:38:12 2012: "Module" Mail::IMAPTalk<br> · "installed into: /usr/local/share/perl5"<br><br> · "LINKTYPE: dynamic"<br><br> · "VERSION: 2.01"<br><br> · "EXE_FILES: "<br><br>I guess is the same version that you named on the mail, am I right? or I should install other version.<br><br>Sorry if my english is not quite correct.<br><br>Thanks & Regards.<br><br>Manel Gimeno Zaragoza<br>magiza83@hotmail.com<br><br><br><div><div id="ecxSkyDrivePlaceholder"></div>> From: robm@fastmail.fm<br>> To: magiza83@hotmail.com; info-cyrus@lists.andrew.cmu.edu<br>> CC: rjlov@fastmail.fm<br>> Subject: Re: UTF7 mailbox codification error<br>> Date: Fri, 24 Feb 2012 09:48:02 +1100<br>> <br>> <br>> > $IMAPs1->set_unicode_folders(1);<br>> > $IMAPs2->set_unicode_folders(1);<br>> ...<br>> > How can I avoid this error? Or force that the method do not "convert" the<br>> > strings.<br>> <br>> You explicitly said you want unicode folder support, but then explicitly<br>> pass IMAP UTF-7 folder names rather than a perl unicode string.<br>> <br>> So just don't turn on unicode folders. eg<br>> <br>> $IMAPs1->set_unicode_folders(0);<br>> $IMAPs2->set_unicode_folders(0);<br>> <br>> And I think you should be fine. I can't guarantee that, because we don't<br>> use that mode any more. If it's still broken, let me know, I'll fix the<br>> code and put it on https://github.com/robmueller/mail-imaptalk/<br>> <br>> Rob<br></div>                                            </div>
<br>----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/</div>                                            </div></body>
</html>