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
9cfd5000
...
9cfd5000c16ba26485610f65d949addd65bdae1d
authored
2002-03-28 17:43:16 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(user_mailbox_name): Operate only on mbox: and path URLs.
1 parent
fa0ce32f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
mailbox/mbx_default.c
mailbox/mbx_default.c
View file @
9cfd500
...
...
@@ -123,6 +123,15 @@ get_homedir (const char *user)
static
int
user_mailbox_name
(
const
char
*
user
,
char
**
mailbox_name
)
{
char
*
p
;
p
=
strchr
(
mu_path_maildir
,
':'
);
if
(
p
&&
strncmp
(
mu_path_maildir
,
"mbox"
,
p
-
mu_path_maildir
))
{
*
mailbox_name
=
strdup
(
mu_path_maildir
);
return
0
;
}
#ifdef USE_ENVIRON
if
(
!
user
)
user
=
(
getenv
(
"LOGNAME"
))
?
getenv
(
"LOGNAME"
)
:
getenv
(
"USER"
);
...
...
@@ -221,7 +230,6 @@ tilde_expand (const char *file, char **buf)
}
free
(
path
);
free
(
user
);
return
*
buf
?
0
:
ENOMEM
;
}
...
...
Please
register
or
sign in
to post a comment