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
86d51d05
...
86d51d056891373d0e3b097cafeefa19c5b30779
authored
2001-05-31 20:53:43 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Davae patch to reconnect when POP timeout.
1 parent
a98c19c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
mailbox/mbx_pop.c
mailbox/mbx_pop.c
View file @
86d51d0
...
...
@@ -240,6 +240,8 @@ do \
{ \
stream_close (mbox->stream); \
CLEAR_STATE (mpd); \
mpd->func = (void *)-1; \
MAILBOX_DEBUG1(mbox, MU_DEBUG_PROT, "CHECK_ERROR_CLOSE: %s\n", strerror (status));\
return status; \
} \
} \
...
...
@@ -252,6 +254,8 @@ do \
if (status != 0) \
{ \
CLEAR_STATE (mpd); \
mpd->func = (void*)-1; \
MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_ERROR: %s\n", strerror (status));\
return status; \
} \
} \
...
...
@@ -266,6 +270,8 @@ do \
if (status != EAGAIN && status != EINPROGRESS && status != EINTR) \
{ \
CLEAR_STATE (mpd); \
mpd->func = (void *)-1; \
MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_EAGAIN: %s\n", strerror (status));\
} \
return status; \
} \
...
...
@@ -1610,6 +1616,8 @@ pop_retr (pop_message_t mpm, char *buffer, size_t buflen, off_t offset,
/* RETR ACK. */
status
=
pop_read_ack
(
mpd
);
CHECK_EAGAIN
(
mpd
,
status
);
MAILBOX_DEBUG0
(
mpd
->
mbox
,
MU_DEBUG_PROT
,
mpd
->
buffer
);
if
(
strncasecmp
(
mpd
->
buffer
,
"+OK"
,
3
)
!=
0
)
{
CHECK_ERROR
(
mpd
,
EACCES
);
...
...
@@ -1622,7 +1630,6 @@ pop_retr (pop_message_t mpm, char *buffer, size_t buflen, off_t offset,
{
/* Do we need to fill up. */
if
(
mpd
->
nl
==
NULL
||
mpd
->
ptr
==
mpd
->
buffer
)
{
status
=
pop_readline
(
mpd
);
if
(
status
!=
0
)
...
...
Please
register
or
sign in
to post a comment