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
0819261e
...
0819261ed5b12d9bf96fd2ef070ea2d2b44c3f2a
authored
2002-11-19 18:19:15 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_set_user_email): Set user's domain as well.
1 parent
f423b825
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
mailbox/mutil.c
mailbox/mutil.c
View file @
0819261
...
...
@@ -485,7 +485,8 @@ mu_set_user_email (const char *candidate)
address_t
addr
=
NULL
;
size_t
emailno
=
0
;
char
*
email
=
NULL
;
char
*
domain
=
NULL
;
if
((
err
=
address_create
(
&
addr
,
candidate
))
!=
0
)
return
err
;
...
...
@@ -501,12 +502,15 @@ mu_set_user_email (const char *candidate)
if
((
err
=
address_aget_email
(
addr
,
1
,
&
email
))
!=
0
)
goto
cleanup
;
if
(
mu_user_email
)
free
(
mu_user_email
);
mu_user_email
=
email
;
address_aget_domain
(
addr
,
1
,
&
domain
);
mu_set_user_email_domain
(
domain
);
free
(
domain
);
cleanup:
address_destroy
(
&
addr
);
...
...
@@ -582,10 +586,10 @@ mu_get_user_email (const char *name)
status
=
mu_get_user_email_domain
(
&
domainpart
);
if
(
status
)
{
errno
=
status
;
return
NULL
;
}
{
errno
=
status
;
return
NULL
;
}
if
((
status
=
parse822_quote_local_part
(
&
localpart
,
name
)))
{
...
...
Please
register
or
sign in
to post a comment