Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
284508a4
...
284508a42c850519a11a420cb915a4961042b89c
authored
2008-10-14 14:14:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(url_parse0): Allow for <user>:<password>;AUTH=<auth> syntax.
1 parent
fe794428
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
ChangeLog
mailbox/url.c
ChangeLog
View file @
284508a
2008-10-14 Sergey Poznyakoff <gray@gnu.org.ua>
* mailbox/url.c (url_parse0): Allow for
<user>:<password>;AUTH=<auth> syntax.
2008-10-05 Sergey Poznyakoff <gray@gnu.org.ua>
Fix remote+ records.
...
...
mailbox/url.c
View file @
284508a
...
...
@@ -260,12 +260,17 @@ url_parse0 (mu_url_t u, char *name)
/* Try to split the user into a:
<user>:<password>
or
<user>;AUTH=<auth>
<user>
:<password>
;AUTH=<auth>
*/
for
(;
*
name
;
name
++
)
{
if
(
*
name
==
';'
)
if
(
*
name
==
':'
)
{
*
name
++
=
0
;
u
->
passwd
=
name
;
}
else
if
(
*
name
==
';'
)
{
/* Make sure it's the auth token. */
if
(
strncasecmp
(
name
+
1
,
"auth="
,
5
)
==
0
)
...
...
@@ -276,12 +281,6 @@ url_parse0 (mu_url_t u, char *name)
break
;
}
}
if
(
*
name
==
':'
)
{
*
name
++
=
0
;
u
->
passwd
=
name
;
break
;
}
}
}
...
...
Please
register
or
sign in
to post a comment