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
70ae1f5c
...
70ae1f5c17966ad9e3bec670d85ccfb1953141e0
authored
2002-12-09 13:26:43 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_get_user_email): Added comment.
1 parent
cc1c7ced
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
mailbox/mutil.c
mailbox/mutil.c
View file @
70ae1f5
...
...
@@ -348,16 +348,16 @@ mu_set_user_email_domain (const char *domain)
{
char
*
d
=
NULL
;
if
(
!
domain
)
if
(
!
domain
)
return
EINVAL
;
d
=
strdup
(
domain
);
d
=
strdup
(
domain
);
if
(
!
d
)
if
(
!
d
)
return
ENOMEM
;
if
(
mu_user_email_domain
)
free
(
mu_user_email_domain
);
if
(
mu_user_email_domain
)
free
(
mu_user_email_domain
);
mu_user_email_domain
=
d
;
...
...
@@ -365,13 +365,13 @@ mu_set_user_email_domain (const char *domain)
}
int
mu_get_user_email_domain
(
const
char
**
domain
)
mu_get_user_email_domain
(
const
char
**
domain
)
{
int
err
=
0
;
if
(
!
mu_user_email_domain
)
{
if
((
err
=
mu_get_host_name
(
&
mu_user_email_domain
)))
if
((
err
=
mu_get_host_name
(
&
mu_user_email_domain
)))
return
err
;
}
...
...
@@ -380,6 +380,7 @@ mu_get_user_email_domain (const char** domain)
return
0
;
}
/* Note: allocates memory */
char
*
mu_get_user_email
(
const
char
*
name
)
{
...
...
Please
register
or
sign in
to post a comment