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
2cbbfcf0
...
2cbbfcf0cce783d0b1370602ea6eb02256627739
authored
2003-08-29 19:11:45 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Provide a better diagnostics.
1 parent
a6f64276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
mailbox/imap/folder.c
mailbox/imap/folder.c
View file @
2cbbfcf
...
...
@@ -251,8 +251,9 @@ tls (folder_t folder)
if
(
!
mu_tls_enable
||
check_capa
(
f_imap
,
"STARTTLS"
))
return
-
1
;
FOLDER_DEBUG1
(
folder
,
MU_DEBUG_PROT
,
"g%u STARTTLS
\n
"
,
f_imap
->
seq
);
status
=
imap_writeline
(
f_imap
,
"g%u STARTTLS
\r\n
"
,
f_imap
->
seq
,
f_imap
->
user
,
f_imap
->
passwd
);
f_imap
->
seq
++
,
f_imap
->
user
,
f_imap
->
passwd
);
CHECK_ERROR
(
f_imap
,
status
);
status
=
imap_send
(
f_imap
);
CHECK_ERROR
(
f_imap
,
status
);
...
...
@@ -313,9 +314,13 @@ authenticate_imap_login (authority_t auth)
url_get_passwd
(
folder
->
url
,
f_imap
->
passwd
,
n
+
1
,
NULL
);
}
if
(
f_imap
->
user
==
NULL
||
f_imap
->
passwd
==
NULL
)
if
(
f_imap
->
user
==
NULL
)
{
CHECK_ERROR_CLOSE
(
folder
,
f_imap
,
EINVAL
);
CHECK_ERROR_CLOSE
(
folder
,
f_imap
,
MU_ERR_NOUSERNAME
);
}
if
(
f_imap
->
passwd
==
NULL
)
{
CHECK_ERROR_CLOSE
(
folder
,
f_imap
,
MU_ERR_NOPASSWORD
);
}
status
=
imap_writeline
(
f_imap
,
"g%u LOGIN %s %s
\r\n
"
,
f_imap
->
seq
,
f_imap
->
user
,
f_imap
->
passwd
);
...
...
Please
register
or
sign in
to post a comment