aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEDT 2000 Jeffrey Stedfast <fejj@stampede.org>2000-04-07 20:51:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-04-07 20:51:50 +0800
commit1c177277991b486b7d983ca78c801c9d8a208b1c (patch)
tree3111d4362fae353ab769ddc5d23ff2b723d69ea1
parent1d4dad08a2a20518fadad0a6d673f825219c0980 (diff)
downloadgsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar.gz
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar.bz2
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar.lz
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar.xz
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.tar.zst
gsoc2013-evolution-1c177277991b486b7d983ca78c801c9d8a208b1c.zip
o Added smtp_helo() request into smtp_connect() (forgott o do this before)
Fri Apr 7 08:01:43 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Added smtp_helo() request into smtp_connect() (forgott o do this before) o Modified smtp_helo() to send EHLO if communicating with an ESMTP server svn path=/trunk/; revision=2322
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index a81d9344b6..ea4a811f14 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -178,6 +178,9 @@ smtp_connect (CamelService *service, CamelException *ex)
} while ( *(respbuf+3) == '-' ); /* if we got "220-" then loop again */
g_free(respbuf);
+ /* send HELO */
+ smtp_helo(service, ex);
+
return TRUE;
}
@@ -420,7 +423,10 @@ smtp_helo (CamelSmtpTransport *transport, CamelException *ex)
}
/* hiya server! how are you today? */
- cmdbuf = g_strdup_printf ("HELO %s\r\n", localhost);
+ if (smtp_is_esmtp)
+ cmdbuf = g_strdup_printf ("EHLO %s\r\n", localhost);
+ else
+ cmdbuf = g_strdup_printf ("HELO %s\r\n", localhost);
if ( camel_stream_write (transport->ostream, cmdbuf, strlen(cmdbuf)) == -1)
{
g_free(cmdbuf);