[Zope] Worldpilot and imap problem
Bryan Stillwell
arcane@verinet.com
Wed, 14 Jun 2000 14:40:13 -0600 (MDT)
You could download pynetd and setup port forwarding from some port (1430
would work) to port 143. Then setup WorldPilot to use port 1430 when
checking for new mail. Everything will behave the same, but now you can
watch all the imap commands being sent by WorldPilot.
You can get pynetd from here:
ftp://ftp.tummy.com/pub/tummy/pynetd/pynetd-1.18.tar.gz
You'll have to modify the pynetd program to turn on local echo by doing
this:
Around line 292 you have:
try:
data = src.recv(10240)
dest.send(data)
Now change it to say:
try:
data = src.recv(10240)
print 'got:"%s"' % data
dest.send(data)
Then add this line to pynetd.conf-dist:
:1430 127.0.0.1:143
After you do both of those steps you can start up pynetd like this:
# ./pynetd -f pynetd.conf-dist
You can then do a test by telneting to your server on port 1430:
# telnet imap.myserver.com 1430
Trying 192.168.1.28...
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2000 Double Precision, Inc. See COPYING for distribution information.
1 login bryan MySecret1
1 OK LOGIN Ok.
1 logout
* BYE Courier-IMAP server shutting down
1 OK LOGOUT completed
Connection closed by foreign host.
Now the xterm running pynetd will look like this:
# ./pynetd -f pynetd.conf-dist
got:"* OK Courier-IMAP ready. Copyright 1998-2000 Double Precision, Inc. See COPYING for distribution information.
"
got:"1 login bryan MySecret1
"
got:"1 OK LOGIN Ok.
"
got:"1 logout
"
got:"* BYE Courier-IMAP server shutting down
1 OK LOGOUT completed
"
got:""
You can now try it in WorldPilot and Netscape and see where it's messing
up/hanging.
Hope this helps... If you can't figure out why it's hanging at a certain
IMAP command, feel free to send me the pynetd output and I might be able
to tell you.
Bryan Stillwell
--
http://www.tummy.com/ Consulting and Software for Linux and Unix
KRUD - Kevin's Red Hat Uber Distribution - the Freshest Red Hat every month
On Wed, 14 Jun 2000, Deryk Barker wrote:
> Looking through the archives I couldn't find anything which semed
> quite relevant, so:
>
> I'm currently running Linux mandrake 7.02 and have enabled the IMAP
> (4.7-7) server. I can read/write mail via netscape using imap, so I
> presume the setup is OK. (Although i can't quite get pine to talk to
> it, maybe something isn't quite right).
>
> Unfortunately, whenever I log onto worldpilot (and yes I have edited
> the DOMAIN.py file) the hourglass appears, presumably while attempting
> to fetch my mail and top shows me a python process running as zope,
> chewing up anything up to 80-90% of the CPU. All that seems to work is
> restarting zope.
>
> Trimming the contents of my mailbox down to just 6 messages didn't
> seem to make any difference.
>
> Anyone shed any light?
>
> Oh yes, I have applied the imap.py.diff patch to the python library.