Diffstat (limited to 'kmicromail/libetpan/smtp/mailsmtp.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/smtp/mailsmtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kmicromail/libetpan/smtp/mailsmtp.c b/kmicromail/libetpan/smtp/mailsmtp.c index b3be432..3ab1d11 100644 --- a/kmicromail/libetpan/smtp/mailsmtp.c +++ b/kmicromail/libetpan/smtp/mailsmtp.c | |||
@@ -183,24 +183,26 @@ int mailsmtp_helo(mailsmtp * session) | |||
183 | r = gethostname(hostname, HOSTNAME_SIZE); | 183 | r = gethostname(hostname, HOSTNAME_SIZE); |
184 | if (r < 0) | 184 | if (r < 0) |
185 | return MAILSMTP_ERROR_HOSTNAME; | 185 | return MAILSMTP_ERROR_HOSTNAME; |
186 | 186 | ||
187 | snprintf(command, SMTP_STRING_SIZE, "HELO %s\r\n", hostname); | 187 | snprintf(command, SMTP_STRING_SIZE, "HELO %s\r\n", hostname); |
188 | r = send_command(session, command); | 188 | r = send_command(session, command); |
189 | if (r == -1) | 189 | if (r == -1) |
190 | return MAILSMTP_ERROR_STREAM; | 190 | return MAILSMTP_ERROR_STREAM; |
191 | r = read_response(session); | 191 | r = read_response(session); |
192 | 192 | ||
193 | switch (r) { | 193 | switch (r) { |
194 | case 250: | 194 | case 250: |
195 | session->esmtp = 0; | ||
196 | session->auth = MAILSMTP_AUTH_NOT_CHECKED; | ||
195 | return MAILSMTP_NO_ERROR; | 197 | return MAILSMTP_NO_ERROR; |
196 | 198 | ||
197 | case 504: | 199 | case 504: |
198 | return MAILSMTP_ERROR_NOT_IMPLEMENTED; | 200 | return MAILSMTP_ERROR_NOT_IMPLEMENTED; |
199 | 201 | ||
200 | case 550: | 202 | case 550: |
201 | return MAILSMTP_ERROR_ACTION_NOT_TAKEN; | 203 | return MAILSMTP_ERROR_ACTION_NOT_TAKEN; |
202 | 204 | ||
203 | case 0: | 205 | case 0: |
204 | return MAILSMTP_ERROR_STREAM; | 206 | return MAILSMTP_ERROR_STREAM; |
205 | 207 | ||
206 | default: | 208 | default: |