1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] still having smtp_readline problems
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20still%20having%20smtp_readline%20problems&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000808.html">
11 <LINK REL=
"Next" HREF=
"000822.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] still having smtp_readline problems
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20still%20having%20smtp_readline%20problems&In-Reply-To="
17 TITLE=
"[IRCServices Coding] still having smtp_readline problems">achurch at achurch.org
19 <I>Thu May
30 19:
24:
16 PDT
2002</I>
21 <LI>Previous message:
<A HREF=
"000808.html">[IRCServices Coding] RAW question
23 <LI>Next message:
<A HREF=
"000822.html">[IRCServices Coding] Concerns with sendpass
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#809">[ date ]
</a>
27 <a href=
"thread.html#809">[ thread ]
</a>
28 <a href=
"subject.html#809">[ subject ]
</a>
29 <a href=
"author.html#809">[ author ]
</a>
34 <PRE> OR is correct. The code reads
"repeat the loop if -EITHER- (
1) we
35 haven't seen an end-of-line character (i.e. this line hasn't been
36 completely read) -OR- we have read the line completely, but si-
>replychar
37 (the fourth character of the line) is not a space.
" The second condition
38 is required to handle multiple-line SMTP replies, in which the fourth
39 character of every line except the last one is '-', and the fourth
40 character of the last line is a space.
42 Maybe your mail server is broken?
45 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
46 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
49 </I>><i>from smtp_readline, modules/mail/smtp.c:
202
50 </I>><i> if (!have_eol || si-
>replychar != ' ')
53 </I>><i>Should that not be AND? If we dont have the end of line and the socket's
54 </I>><i>replychar isnt a space, return and read again(?). I dont know why anyone
55 </I>><i>else isn't having problems with sendmail functions.. maybe its my mail
56 </I>><i>server. When this code executes, si-
>replychar == '-'. Change it to
&& or
57 </I>><i>comment it out, I get mail.
59 </I>><i>FreeBSD raider
4.4-
20010827-RC2 FreeBSD
4.4-
20010827-RC2 #
4: Fri Nov
16
61 </I>><i> EST
2001 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at raider
</A>:/usr/obj/usr/src/sys/BG1 i386
63 </I>><i>ircservices-
5.0pre0 services.bstu.dhs.org build #
14, compiled Wed May
29
64 </I>><i>19:
12:
33 EDT
2002
66 </I>><i>-- Ben Goldstein (
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">beng at nc.rr.com
</A>)
71 </I>><i>------------------------------------------------------------------
72 </I>><i>To unsubscribe or change your subscription options, visit:
73 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
81 <LI>Previous message:
<A HREF=
"000808.html">[IRCServices Coding] RAW question
83 <LI>Next message:
<A HREF=
"000822.html">[IRCServices Coding] Concerns with sendpass
85 <LI> <B>Messages sorted by:
</B>
86 <a href=
"date.html#809">[ date ]
</a>
87 <a href=
"thread.html#809">[ thread ]
</a>
88 <a href=
"subject.html#809">[ subject ]
</a>
89 <a href=
"author.html#809">[ author ]
</a>