<div class="gmail_quote">Hello,<br>My company have almost ten thousand mailboxes on Cyrus Imap.<br>We use Thunderbird for IMAP client and PHP for webmail.<br>We have a problem in a very few mailboxes. This boxes don't have any visible problem with Thunderbird access but in PHP, the (webmail) access provide a "segmentation failed".<br>
If I modify the cyrus.header file the "segmentation failed" problem is resolved.<br><br>This is a problematic cyrus.header:<br>¡^B<8b>^MCyrus mailbox header<br>"The best thing about this system was that it had lots of goals."<br>
--Jim Morris on Andrew<br>user.0240169xxxx 5bc4b7c0488731c8<br>0240169xxxx lrswipcda $Forwarded $label1 $label4 $label2 $label3 $label5 $MDNSent NonJunk acade acgap alfredo andre_porto carneiro chevalier cida-bruno cida_coutinho claudia concei&aoca4w-o daniela elaine erlan fazer_reuni&aom-o fernanda godinho helenac inah joao_almeida katia lm luis mara marcio_rfb marco maria_lucia_-_acbsa nelicio pc pendente plinio pp resolvido rwagner tema vinicius-oracle<br>
0240169xxxx lrswipcda<br><br>If I modify cyrus.header, the "segmentation failed" is resolved, but this generate a Thunderbird labels messages problem.<br><br>Modified cyrus.header:<br>¡^B<8b>^MCyrus mailbox header<br>
"The best thing about this system was that it had lots of goals."<br> --Jim Morris on Andrew<br>user.0240169xxxx 5bc4b7c0488731c8<br>0240169xxxx lrswipcda $Forwarded $label1 $label4 $label2 $label3 $label5 $MDNSent NonJunk<br>
0240169xxxx lrswipcda<br><br>Thunderbird version: <a href="http://2.0.0.14" target="_blank">2.0.0.14</a>;<br>PHP version (Debian Etch): 5.2.0-8+etch7<br>Cyrus Impad version: cyrus-imapd-2.2.12-8.1.RHEL4<br><br>I use this simple php script for tests:<br>
<?php<br>$mbox = imap_open("{myserver:143/notls}INBOX", "0240169xxxx", "password") or die("can't connect: " . imap_last_error());<br> $list = imap_list($mbox, "{myserver:143}INBOX", "*");<br>
if (is_array($list)) {<br> foreach ($list as $val) {<br> echo imap_utf7_decode($val) . "\n";<br> }<br> } else {<br> echo "imap_list failed: " . imap_last_error() . "\n";<br>
}<br> imap_close($mbox);<br>?><br>If the cyrus.header file is the problematic one, the result of this script is a list os subfolders and a "segmentation failed".<br><br>Where is the problem?<br>
<br>Thanks.<br><font color="#888888"><br>-- <br>Émerson Virti<br><a href="mailto:emerson.virti@gmail.com" target="_blank">emerson.virti@gmail.com</a><br>
</font></div>