summaryrefslogtreecommitdiff
path: root/mailbox
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2005-02-26 11:56:53 +0000
committerWojciech Polak <polak@gnu.org>2005-02-26 11:56:53 +0000
commit4187db448ac956932bfe3ea115257b395e91d8ba (patch)
treebb0bcc9af34a744d74034e4f199241197917c986 /mailbox
parent368eb764c900075fbba42c13c75fd5b5b51abb23 (diff)
downloadmailutils-4187db448ac956932bfe3ea115257b395e91d8ba.tar.gz
mailutils-4187db448ac956932bfe3ea115257b395e91d8ba.tar.bz2
(_url_smtp_init): Do not reject an URL with user name, password, or auth method specified.
We will use it in further ESMTP authentication.
Diffstat (limited to 'mailbox')
-rw-r--r--mailbox/url_smtp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mailbox/url_smtp.c b/mailbox/url_smtp.c
index 761a8349b..86716ef0c 100644
--- a/mailbox/url_smtp.c
+++ b/mailbox/url_smtp.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -40,7 +40,6 @@ _url_smtp_init (url_t url)
return EINVAL;
/* host isn't optional */
-
if(!url->host)
return EINVAL;
@@ -48,11 +47,14 @@ _url_smtp_init (url_t url)
if(!url->port)
url->port = MU_SMTP_PORT;
+ /* accept url->user, pass, and auth
+ for the ESMTP authentication */
+
/* all other fields must be NULL */
- if(url->user || url->passwd || url->auth || url->path || url->query)
+ if(url->path || url->query)
return EINVAL;
return 0;
}
-#endif
+#endif /* ENABLE_SMTP */

Return to:

Send suggestions and report system problems to the System administrator.