[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Kmail - where may I ask questions?
From: Michael Haeckel <Michael () Haeckel ! Net>
Date: 2000-10-31 18:51:42
[Download RAW message or body]
On Tuesday, 31. October 2000 18:34, Waldo Bastian wrote:
> On Tuesday 31 October 2000 05:07, you wrote:
> > Mr. Bastian,
> >
> > I have been using kmail for a little while, and must say I like it.
>
> Thank you.
>
> > All is not well, however.
> >
> > I do not know if you are the correct person to ask this question, perhaps
> > a list is better. I could not find one, so I am trying you. If that is
> > wrong, please tell me where to get help.
> >
> > Thank you.
> >
> > The error is:
> >
> > 9 out of 10, or maybe more, of the times I check my mail i get an error
> > message:
> > ---
> > Could not login to pop.stud.ntnu.no.
> >
> > I said:
> > "USER osstein"
> >
> > And then the server said:
> > "-ERR Command line too long"
If you apply the attached patch to /kdebase/kioslave/pop3/pop3.cc or update
from cvsup it will probably work.
Seems, that your server (POP3 elefant proxy server v1.0) also has problems
with our commands althought I think they are correct.
Regards,
Michael Häckel
["command-fix.diff" (text/x-c)]
Index: pop3.cc
===================================================================
RCS file: /home/kde/kdebase/kioslave/pop3/pop3.cc,v
retrieving revision 1.76
diff -u -3 -p -r1.76 pop3.cc
--- pop3.cc 2000/08/25 10:56:40 1.76
+++ pop3.cc 2000/10/22 21:39:14
@@ -229,16 +229,17 @@ bool POP3Protocol::command (const char *
*/
// Write the command
- if (Write(cmd, strlen(cmd)) != static_cast<ssize_t>(strlen(cmd)))
+ char *cmdrn;
+ cmdrn = static_cast<char *>(malloc(strlen(cmd) + 3));
+ sprintf(cmdrn, "%s\r\n", cmd);
+
+ if (Write(cmdrn, strlen(cmdrn)) != static_cast<ssize_t>(strlen(cmdrn)))
{
m_sError = i18n("Could not send to server.\n");
+ free(cmdrn);
return false;
}
- if (Write("\r\n", 2) != 2)
- {
- m_sError = i18n("Could not send to server.\n");
- return false;
- }
+ free(cmdrn);
return getResponse(recv_buf, len, cmd);
}
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic