Rev 7742 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7742 | Rev 7746 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | { |
105 | { |
106 | debugln("alloc error!"); |
106 | debugln("alloc error!"); |
107 | aim=NULL; |
107 | aim=NULL; |
108 | break; |
108 | break; |
109 | } |
109 | } |
110 | debug("mailsize: "); debugi(mailsize); |
110 | debugval("mailsize", mailsize); |
111 | aim = GET_ANSWER_RETR; |
111 | aim = GET_ANSWER_RETR; |
112 | debugln("goto GET_ANSWER_RETR"); |
112 | debugln("goto GET_ANSWER_RETR"); |
113 | break; |
113 | break; |
Line 114... | Line 114... | ||
114 | 114 | ||
115 | case GET_ANSWER_RETR: |
115 | case GET_ANSWER_RETR: |
116 | debug("mailsize: "); debugi(mailsize); |
116 | debugval("mailsize", mailsize); |
117 | debug("mailstart: "); debugi(mailstart); |
117 | debugval("mailstart", mailstart); |
118 | debug("mailend: "); debugi(mailend); |
118 | debugval("mailend", mailend); |
119 | ticks = Receive(socketnum, mailend, mailsize + mailstart - mailend, MSG_DONTWAIT); |
119 | ticks = Receive(socketnum, mailend, mailsize + mailstart - mailend, MSG_DONTWAIT); |
120 | if (ticks == 0xffffffff) break; |
120 | if (ticks == 0xffffffff) break; |
121 | mailend = mailend + ticks; |
121 | mailend = mailend + ticks; |
122 | if (mailsize + mailstart - mailend - 2 < 0) |
122 | if (mailsize + mailstart - mailend - 2 < 0) |