]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000809.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000809.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] still having smtp_readline problems
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] still having smtp_readline problems</H1>
15 <B>Andrew Church</B>
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
18 </A><BR>
19 <I>Thu May 30 19:24:16 PDT 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000808.html">[IRCServices Coding] RAW question
22 </A></li>
23 <LI>Next message: <A HREF="000822.html">[IRCServices Coding] Concerns with sendpass
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE> OR is correct. The code reads &quot;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-&gt;replychar
37 (the fourth character of the line) is not a space.&quot; 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.
41
42 Maybe your mail server is broken?
43
44 --Andrew Church
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>
47
48 &gt;<i>
49 </I>&gt;<i>from smtp_readline, modules/mail/smtp.c:202
50 </I>&gt;<i> if (!have_eol || si-&gt;replychar != ' ')
51 </I>&gt;<i> return;
52 </I>&gt;<i>
53 </I>&gt;<i>Should that not be AND? If we dont have the end of line and the socket's
54 </I>&gt;<i>replychar isnt a space, return and read again(?). I dont know why anyone
55 </I>&gt;<i>else isn't having problems with sendmail functions.. maybe its my mail
56 </I>&gt;<i>server. When this code executes, si-&gt;replychar == '-'. Change it to &amp;&amp; or
57 </I>&gt;<i>comment it out, I get mail.
58 </I>&gt;<i>
59 </I>&gt;<i>FreeBSD raider 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #4: Fri Nov 16
60 </I>&gt;<i>14:57:04
61 </I>&gt;<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
62 </I>&gt;<i>
63 </I>&gt;<i>ircservices-5.0pre0 services.bstu.dhs.org build #14, compiled Wed May 29
64 </I>&gt;<i>19:12:33 EDT 2002
65 </I>&gt;<i>
66 </I>&gt;<i>-- Ben Goldstein (<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">beng at nc.rr.com</A>)
67 </I>&gt;<i>
68 </I>&gt;<i>
69 </I>&gt;<i>
70 </I>&gt;<i>
71 </I>&gt;<i>------------------------------------------------------------------
72 </I>&gt;<i>To unsubscribe or change your subscription options, visit:
73 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding</A>
74 </I>
75 </PRE>
76
77 <!--endarticle-->
78 <HR>
79 <P><UL>
80 <!--threads-->
81 <LI>Previous message: <A HREF="000808.html">[IRCServices Coding] RAW question
82 </A></li>
83 <LI>Next message: <A HREF="000822.html">[IRCServices Coding] Concerns with sendpass
84 </A></li>
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>
90 </LI>
91 </UL>
92
93 </body></html>