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
fa578a40
...
fa578a4093f8ba14dd859833707901c1e95a0ff1
authored
2004-11-15 16:35:35 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(pop3d_capa): Announce XTLSREQUIRED if appropriate
1 parent
1103d9e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
pop3d/capa.c
pop3d/capa.c
View file @
fa578a4
...
...
@@ -32,7 +32,7 @@ pop3d_capa (const char *arg)
if
(
strlen
(
arg
)
!=
0
)
return
ERR_BAD_ARGS
;
if
(
state
!=
AUTHORIZATION
&&
state
!=
TRANSACTION
)
if
(
state
!=
initial_state
&&
state
!=
TRANSACTION
)
return
ERR_WRONG_STATE
;
pop3d_outf
(
"+OK Capability list follows
\r\n
"
);
...
...
@@ -48,12 +48,15 @@ pop3d_capa (const char *arg)
#endif
/* WITH_TLS */
login_delay_capa
();
/* This can be
I
mplemented by setting an header field on the message. */
/* This can be
i
mplemented by setting an header field on the message. */
if
(
expire
<
0
)
pop3d_outf
(
"EXPIRE NEVER
\r\n
"
);
else
pop3d_outf
(
"EXPIRE %d
\r\n
"
,
expire
);
if
(
state
==
INITIAL
)
pop3d_outf
(
"XTLSREQUIRED
\r\n
"
);
if
(
state
==
TRANSACTION
)
/* let's not advertise to just anyone */
pop3d_outf
(
"IMPLEMENTATION %s
\r\n
"
,
PACKAGE_STRING
);
pop3d_outf
(
".
\r\n
"
);
...
...
Please
register
or
sign in
to post a comment