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
88f49063
...
88f4906326fa3c582f738b2fbb0e2693792e432a
authored
2003-08-29 19:10:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(MU_ERR_NOUSERNAME,MU_ERR_NOPASSWORD): New error codes.
1 parent
34286779
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
include/mailutils/errno.h
mailbox/muerrno.c
include/mailutils/errno.h
View file @
88f4906
...
...
@@ -67,6 +67,9 @@ extern "C" {
#define MU_ERR_BAD_2047_INPUT (MU_ERR_BASE + 27)
#define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28)
#define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29)
const
char
*
mu_errname
__P
((
int
e
));
const
char
*
mu_strerror
__P
((
int
e
));
...
...
mailbox/muerrno.c
View file @
88f4906
...
...
@@ -79,6 +79,8 @@ mu_errname (int e)
EN
(
MU_ERR_TCP_NO_HOST
);
EN
(
MU_ERR_TCP_NO_PORT
);
EN
(
MU_ERR_BAD_2047_INPUT
);
EN
(
MU_ERR_NOUSERNAME
);
EN
(
MU_ERR_NOPASSWORD
);
}
return
"SYSTEM ERROR"
;
...
...
@@ -127,6 +129,9 @@ mu_strerror (int e)
ES
(
MU_ERR_TCP_NO_PORT
,
_
(
"Tcp connections need a postive port"
));
ES
(
MU_ERR_BAD_2047_INPUT
,
_
(
"Input string is not RFC 2047 encoded"
));
ES
(
MU_ERR_NOUSERNAME
,
_
(
"User name is not supplied"
));
ES
(
MU_ERR_NOPASSWORD
,
_
(
"User password is not supplied"
));
}
return
strerror
(
e
);
...
...
Please
register
or
sign in
to post a comment