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
e25a55cd
...
e25a55cd7fcf0d69a4ee095572920d71bb948e2f
authored
2007-07-18 17:03:20 +0000
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_url_pop_init, _url_pops_init): Call mu_url_init.
1 parent
2bdae9d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
libproto/pop/url.c
libproto/pop/url.c
View file @
e25a55c
...
...
@@ -41,36 +41,47 @@ url_pop_destroy (mu_url_t url MU_ARG_UNUSED)
}
/*
POP URL:
POP URL
s
:
pop://[<user>[;AUTH=<auth>]@]<host>[:<port>]
or:
pop://[<user>[:pass]@]<host>[:<port>]
*/
int
_url_pop_init
(
mu_url_t
url
)
{
int
status
=
0
;
int
status
=
mu_url_init
(
url
,
MU_POP_PORT
,
"pop"
);
if
(
status
)
return
status
;
url
->
_destroy
=
url_pop_destroy
;
status
=
mu_url_parse
(
url
);
/* not valid in pop url */
if
(
url
->
path
||
url
->
query
||
!
url
->
host
)
return
EINVAL
;
return
0
;
}
/*
POPS URLs:
pops://[<user>[;AUTH=<auth>]@]<host>[:<port>]
pops://[<user>[:pass]@]<host>[:<port>]
*/
if
(
status
)
int
_url_pops_init
(
mu_url_t
url
)
{
int
status
=
mu_url_init
(
url
,
MU_POPS_PORT
,
"pops"
);
if
(
status
)
return
status
;
/* is it pop? */
if
(
strcmp
(
"pop"
,
url
->
scheme
)
!=
0
)
return
EINVAL
;
url
->
_destroy
=
url_pop_destroy
;
/* not valid in
a pop
url */
/* not valid in
pops
url */
if
(
url
->
path
||
url
->
query
||
!
url
->
host
)
return
EINVAL
;
if
(
url
->
port
==
0
)
url
->
port
=
MU_POP_PORT
;
return
status
;
return
0
;
}
#endif
#endif
/* ENABLE_POP */
...
...
Please
register
or
sign in
to post a comment