From 6c0fded334bf9c7a2b7142cae6ee372afe2026be Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 25 Apr 2002 20:02:33 +0000 Subject: Don't put a space between the "RCPT TO:" and the "" strings - 2002-04-25 Jeffrey Stedfast * providers/smtp/camel-smtp-transport.c (smtp_rcpt): Don't put a space between the "RCPT TO:" and the "" strings - rfc0821 was not clear on this but it seems rfc2821 defines a grammar excluding that SP. (smtp_mail): Same. svn path=/trunk/; revision=16588 --- camel/ChangeLog | 8 ++++++++ camel/providers/smtp/camel-smtp-transport.c | 8 +++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 207b49cfe0..93e331f462 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2002-04-25 Jeffrey Stedfast + + * providers/smtp/camel-smtp-transport.c (smtp_rcpt): Don't put a + space between the "RCPT TO:" and the "" strings - + rfc0821 was not clear on this but it seems rfc2821 defines a + grammar excluding that SP. + (smtp_mail): Same. + 2002-04-24 Jeffrey Stedfast * providers/local/camel-local-provider.c diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index 2a5640d7ab..aa37ae5e8c 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -1054,11 +1054,10 @@ smtp_mail (CamelSmtpTransport *transport, const char *sender, gboolean has_8bit_ /* we gotta tell the smtp server who we are. (our email addy) */ char *cmdbuf, *respbuf = NULL; - /* enclose address in <>'s since some SMTP daemons *require* that */ if (transport->flags & CAMEL_SMTP_TRANSPORT_8BITMIME && has_8bit_parts) - cmdbuf = g_strdup_printf ("MAIL FROM: <%s> BODY=8BITMIME\r\n", sender); + cmdbuf = g_strdup_printf ("MAIL FROM:<%s> BODY=8BITMIME\r\n", sender); else - cmdbuf = g_strdup_printf ("MAIL FROM: <%s>\r\n", sender); + cmdbuf = g_strdup_printf ("MAIL FROM:<%s>\r\n", sender); d(fprintf (stderr, "sending : %s", cmdbuf)); @@ -1096,8 +1095,7 @@ smtp_rcpt (CamelSmtpTransport *transport, const char *recipient, CamelException * our email to */ char *cmdbuf, *respbuf = NULL; - /* enclose address in <>'s since some SMTP daemons *require* that */ - cmdbuf = g_strdup_printf ("RCPT TO: <%s>\r\n", recipient); + cmdbuf = g_strdup_printf ("RCPT TO:<%s>\r\n", recipient); d(fprintf (stderr, "sending : %s", cmdbuf)); -- cgit