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
a946ab0a
...
a946ab0a40525d966e8447f4e2c64badd3e5197e
authored
2000-10-25 03:57:46 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
minor nits in POP corrected.
1 parent
c02f8c0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
from/from.c
mailbox/mailbox.c
mailbox/mbx_pop.c
pop3d/pop3d.c
from/from.c
View file @
a946ab0
...
...
@@ -39,7 +39,7 @@
int
main
(
int
argc
,
char
**
argv
)
{
mailbox_t
mbox
;
mailbox_t
mbox
=
NULL
;
size_t
i
;
size_t
count
=
0
;
char
*
mailbox_name
=
NULL
;
...
...
mailbox/mailbox.c
View file @
a946ab0
...
...
@@ -104,6 +104,8 @@ mailbox_create (mailbox_t *pmbox, const char *name, int id)
else
*
pmbox
=
mbox
;
}
else
status
=
ENOENT
;
return
status
;
}
...
...
mailbox/mbx_pop.c
View file @
a946ab0
...
...
@@ -364,11 +364,11 @@ pop_user (authority_t auth)
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
EACCES
);
}
status
=
pop_writeline
(
mpd
,
"PASS %s
\r\n
"
,
mpd
->
passwd
);
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
status
);
/* We have to nuke the passwd. */
memset
(
mpd
->
passwd
,
0
,
strlen
(
mpd
->
passwd
));
free
(
mpd
->
passwd
);
mpd
->
passwd
=
NULL
;
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
status
);
MAILBOX_DEBUG0
(
mbox
,
MU_DEBUG_PROT
,
"PASS *
\n
"
);
mpd
->
state
=
POP_AUTH_PASS
;
...
...
@@ -497,9 +497,12 @@ pop_open (mailbox_t mbox, int flags)
}
case
POP_AUTH
:
case
POP_AUTH_USER
:
case
POP_AUTH_USER_ACK
:
case
POP_AUTH_PASS
:
case
POP_AUTH_PASS_ACK
:
status
=
authority_authenticate
(
mbox
->
authority
);
if
(
status
!=
0
)
return
status
;
CHECK_EAGAIN
(
mpd
,
status
);
case
POP_AUTH_DONE
:
break
;
...
...
pop3d/pop3d.c
View file @
a946ab0
...
...
@@ -98,7 +98,6 @@ main (int argc, char **argv)
registrar_get_list
(
&
bookie
);
list_append
(
bookie
,
mbox_record
);
list_append
(
bookie
,
path_record
);
list_append
(
bookie
,
pop_record
);
}
/* Set the signal handlers */
...
...
Please
register
or
sign in
to post a comment