473,326 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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("{cyrus.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

Jul 17 '05 #1
2 3448
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 :-)

Jul 17 '05 #2
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 :-)

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James Turnbull | last post by:
I am having troubles with some imap_open() I am using the following code: <?php $mbox = imap_open ("{mailserver:993/imap/ssl/no-validatecert}INBOX", "user", "password"); echo...
0
by: Jaysheel Mehd | last post by:
I will be running the script with imap_open() on the IMAP server as root. Can I run imap_open() without entering the password for a user. Is there any other way as an administrator, to open user's...
2
by: Rodney Pont | last post by:
I'm trying to use imap_open to get news from a server that requires a user name and password. I'm using $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, $newsuser, $newspass,...
0
by: Dennis Biletsky | last post by:
Hi, I have a problem to connect mailbox using IMAP_OPEN. There is no problem to connect using standard port such as imap_open ("{10.0.0.0:143}INBOX", "user", "pass"), but I have a problem...
0
by: Hartt | last post by:
hi,all I have written a php scripts to test my mail server which built with Cyrus-imapd 2.2.3 OpenLDAP Postfix. <?php...
0
by: oliversl | last post by:
Hi, I have a stock RHEL4 server and not that the imap_open() function no longer works. I have a local pop3 server running dovecot that I use to autenticate with this line: $imap_stream =...
0
by: R. Pelizzi | last post by:
hello, i'm getting a very strange behaviour with imap_open. My code does: $stream = imap_open("{{$_SESSION}:110/pop3}INBOX", $_SESSION, $_SESSION); then checks if that stream is valid... well,...
4
by: qccitchy | last post by:
G'day, I am so stuck I am pulling what's left of my hair out. Any gurus out there that can help me with this would be greatly appreciated. I am relatively new to php and am trying to connect...
1
by: Eric | last post by:
Hello, I am using imap_open ("{pop.server.com:110/pop3/ notls}INBOX","user","password") in a page that gets emails with pop3 protocol. Imap_open works perfectly on my PC + easyphp1.8, but not on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.