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
02805296
...
028052962d14a2001901bcfc7b30852baa108d4d
authored
2003-10-06 04:40:47 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
67d96f51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
mailbox/pop/pop3_capa.c
mailbox/pop/pop3_connect.c
mailbox/pop/pop3_lista.c
mailbox/pop/pop3_uidla.c
mailbox/pop/pop3_capa.c
View file @
0280529
...
...
@@ -75,7 +75,7 @@ mu_pop3_capa (mu_pop3_t pop3, list_t *plist)
{
MU_POP3_CHECK_ERROR
(
pop3
,
ENOMEM
);
}
while
((
status
=
mu_pop3_readline
(
pop3
,
capability
,
512
,
&
n
))
>
0
&&
n
>
0
)
while
((
status
=
mu_pop3_readline
(
pop3
,
capability
,
512
,
&
n
))
==
0
&&
n
>
0
)
{
/* Nuke the trailing newline */
if
(
capability
[
n
-
1
]
==
'\n'
)
...
...
mailbox/pop/pop3_connect.c
View file @
0280529
...
...
@@ -40,7 +40,7 @@ mu_pop3_connect (mu_pop3_t pop3)
return
EINVAL
;
/* A networking stack. */
if
(
pop3
->
carrier
)
if
(
pop3
->
carrier
==
NULL
)
return
EINVAL
;
/* Enter the pop state machine, and boogy: AUTHORISATION State. */
...
...
mailbox/pop/pop3_lista.c
View file @
0280529
...
...
@@ -50,7 +50,7 @@ mu_pop3_list_all (mu_pop3_t pop3, list_t *plist)
case
MU_POP3_LIST_ACK
:
status
=
mu_pop3_response
(
pop3
,
NULL
,
0
,
NULL
);
MU_POP3_CHECK_EAGAIN
(
pop3
,
status
);
mu_pop3_debug_
cmd
(
pop3
);
mu_pop3_debug_
ack
(
pop3
);
MU_POP3_CHECK_OK
(
pop3
);
status
=
list_create
(
plist
);
MU_POP3_CHECK_ERROR
(
pop3
,
status
);
...
...
@@ -69,7 +69,7 @@ mu_pop3_list_all (mu_pop3_t pop3, list_t *plist)
{
MU_POP3_CHECK_ERROR
(
pop3
,
ENOMEM
);
}
while
((
status
=
mu_pop3_readline
(
pop3
,
lista
,
512
,
&
n
))
>
0
&&
n
>
0
)
while
((
status
=
mu_pop3_readline
(
pop3
,
lista
,
512
,
&
n
))
==
0
&&
n
>
0
)
{
/* Nuke the trailing newline */
if
(
lista
[
n
-
1
]
==
'\n'
)
...
...
mailbox/pop/pop3_uidla.c
View file @
0280529
...
...
@@ -51,6 +51,9 @@ mu_pop3_uidl_all (mu_pop3_t pop3, list_t *plist)
MU_POP3_CHECK_EAGAIN
(
pop3
,
status
);
mu_pop3_debug_ack
(
pop3
);
MU_POP3_CHECK_OK
(
pop3
);
status
=
list_create
(
plist
);
MU_POP3_CHECK_ERROR
(
pop3
,
status
);
list_set_destroy_item
(
*
plist
,
free
);
pop3
->
state
=
MU_POP3_UIDL_RX
;
case
MU_POP3_UIDL_RX
:
...
...
@@ -65,7 +68,7 @@ mu_pop3_uidl_all (mu_pop3_t pop3, list_t *plist)
{
MU_POP3_CHECK_ERROR
(
pop3
,
ENOMEM
);
}
while
((
status
=
mu_pop3_readline
(
pop3
,
uidla
,
512
,
&
n
))
>
0
&&
n
>
0
)
while
((
status
=
mu_pop3_readline
(
pop3
,
uidla
,
512
,
&
n
))
==
0
&&
n
>
0
)
{
/* Nuke the trailing newline */
if
(
uidla
[
n
-
1
]
==
'\n'
)
...
...
Please
register
or
sign in
to post a comment