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
dd881c96
...
dd881c96d869e5f8f87d733718c022d566bb503b
authored
2002-02-27 11:56:48 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Properly handle --user (open user's system mailbox).
1 parent
ae7d6e4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
mail/mail.c
mail/mail.c
View file @
dd881c9
...
...
@@ -341,7 +341,17 @@ main (int argc, char **argv)
/* open the mailbox */
if
(
args
.
file
==
NULL
)
{
if
((
rc
=
mailbox_create_default
(
&
mbox
,
args
.
user
))
!=
0
)
if
(
args
.
user
)
{
char
*
p
=
xmalloc
(
strlen
(
args
.
user
)
+
2
);
p
[
0
]
=
'%'
;
strcpy
(
p
+
1
,
args
.
user
);
rc
=
mailbox_create_default
(
&
mbox
,
p
);
free
(
p
);
}
else
rc
=
mailbox_create_default
(
&
mbox
,
NULL
);
if
(
rc
!=
0
)
{
util_error
(
"Can not create mailbox for %s: %s"
,
args
.
user
,
mu_errstring
(
rc
));
...
...
Please
register
or
sign in
to post a comment