imap_open and norsh flag

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amiliv@gmail.com

    imap_open and norsh flag

    I'm attempting to connect to Cyrus IMAP server using imap_open()
    function. The connection is sucessfull, however there is a delay and
    warning message about "rsh failure". I added /norsh flag to connection
    string, but it seems to be ignored. The call to imap_open() currently
    looks something like this:

    imap_open("{cyr us.google.com}/tls/novalidate-cert/norsh/service=imap/user=cadm",
    "cadm", "secret", OP_HALFOPEN);

    As I said, it works. However there is annoying delay of aprox. 10-15
    seconds, and this warnning message generated by PHP interpreter:

    PHP Notice: (null)(): rsh to IMAP server timed out (errflg=1) in
    Unknown on line 0

    Shouldn't "/norsh" take care of that?

    I'm using RPM packages as distributed with RHEL4:

    php-4.3.9-3.6
    php-imap-4.3.9-3.6
    libc-client-2002e-8

  • Alex--

    #2
    Re: imap_open and norsh flag

    Ah, was my mistake. The connect string should be:

    "{cyrus.google. com/tls/novalidate-cert/norsh/service=imap/user=cadm}"

    And of course, now everthing works as expected. I guess I should have
    taken that extra coffe before I sent my question to the group :-)

    Comment

    • Alex--

      #3
      Re: imap_open and norsh flag

      Ah, was my mistake. The connect string should be:

      "{cyrus.google. com/tls/novalidate-cert/norsh/service=imap/user=cadm}"

      And of course, now everthing works as expected. I guess I should have
      taken that extra coffe before I sent my question to the group :-)

      Comment

      Working...