Menu

#330 imap_open(): Couldn't open stream in down_mail.php

closed-fixed
None
5
2006-10-13
2006-10-13
Tim Gerundt
No

I got errors, if I want do download a mail:

"Warning: imap_open(): Couldn't open stream
{mail.domain.tld:110/pop3}INBOX in
/srv/www/htdocs/nocc/down_mail.php on line 24
Warning: imap_headerinfo(): supplied argument is not a
valid imap resource in
/srv/www/htdocs/nocc/down_mail.php on line 25
[and more follow-up errors]"

I think the problem is, that you use
$_SESSION['nocc_user'] instead of
$_SESSION['nocc_login'] for imap_open() on line 24 in
file down_mail.php.
If the login name is the same like the user name you
got no problems, but if you use "login_with_domain"
(like I do), you get the errors.

Greetings,
Tim

Discussion

  • Tim Gerundt

    Tim Gerundt - 2006-10-13

    Logged In: YES
    user_id=652377

    If I look at the code, the variable $filename on line 73 and
    74 seems not defined. I think this should be $url. Or better
    (and more logical) all $url should be $filename.

    And the "if" statement on line 72 seems needless and in this
    case all the $isIE6 stuff too.

    Tim

     
  • Anonymous

    Anonymous - 2006-10-13
    • assigned_to: nobody --> goddess_skuld
    • status: open --> closed-fixed
     
  • Anonymous

    Anonymous - 2006-10-13

    Logged In: YES
    user_id=529507

    Fixed in CVS.

    It'll be included in next release.

    But you can download daily snapshots at :
    http://nocc.sourceforge.net/download/

    Thanks for the bug report.

     

Log in to post a comment.

MongoDB Logo MongoDB