i try do include a simple POP3/IMAP debug tool to get
the RAW message source in our admin-backend but IMAP
does not love me

why do i not get any response after the "fetch" command
while the debug-log shows something is retrieved from
the DB which matches the message in question

Aug 22 23:51:33 srv-rhsoft.rhso dbmail-imapd[16139]: [0x7f73edc4a4f0] 
Debug:[imap] _fetch_headers(+725):
[0x7f73edcb67c0] for 167205 [(Newsgroups Content-MD5 Content-Disposition 
Content-Language Content-Location
Followup-To References)]
Aug 22 23:51:33 srv-rhsoft.rhso dbmail-imapd[16139]: [0x7f73edc4a4f0] 
Debug:[imap] _send_headers(+652):
[0x7f73edcb67c0] [(Newsgroups Content-MD5 Content-Disposition Content-Language 
Content-Location Followup-To
References)] [References: <4FD82EEA.7060609@
______________________________________________

outputs of the PHP-fwrite()-commands below

* OK [CAPABILITY IMAP4 IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA 
THREAD=ORDEREDSUBJECT UNSELECT IDLE
STARTTLS AUTH=CRAM-MD5 AUTH=DIGEST-MD5 AUTH=LOGIN AUTH=PLAIN]
1 OK [CAPABILITY IMAP4 IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA 
THREAD=ORDEREDSUBJECT UNSELECT IDLE]
User [email protected] authenticated
* 8 EXISTS
* 0 RECENT
______________________________________________-

   if($msgid > 0)
   {
    echo '<div style="white-space:nowrap;">' . MY_LE;
    switch($protocol)
    {
     case 'IMAP':
       $fp = @fsockopen($dbmail->imap_hostname, 143, $errno, $errstr, 1);
       if($fp)
       {
        echo fgets($fp) . '<br />' . MY_LE;
        fwrite($fp, '1 login "' . $username . '" "' . $user_data['password'] . 
'"' . "\n");
        echo fgets($fp) . '<br />' . MY_LE;
        fwrite($fp, '2 EXAMINE "INBOX"' . "\n");
        echo fgets($fp) . '<br />' . MY_LE;
        fwrite($fp, '3 fetch ' . $msgid . ' ALL' . "\n");
        echo fgets($fp) . '<br />' . MY_LE;
       }
       echo '<br />' . MY_LE;
       break;
     case 'POP3':
       break;
    }
    echo '</div>' . MY_LE;
   }

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to