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
bf6389f9
...
bf6389f9809688a58a0b139339cd78922a0eb1be
authored
2002-04-15 09:03:03 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(namespace_getfullpath): Translate INBOX to the corresponding filename.
1 parent
01451a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
imap4d/namespace.c
imap4d/namespace.c
View file @
bf6389f
...
...
@@ -199,7 +199,26 @@ namespace_checkfullpath (char *name, const char *pattern, const char *delim)
char
*
namespace_getfullpath
(
char
*
name
,
const
char
*
delim
)
{
return
namespace_checkfullpath
(
name
,
NULL
,
delim
);
if
(
strcasecmp
(
name
,
"INBOX"
)
==
0
&&
!
mu_virtual_domain
)
{
struct
passwd
*
pw
=
mu_getpwuid
(
getuid
());
if
(
pw
)
{
name
=
malloc
(
strlen
(
mu_path_maildir
)
+
strlen
(
pw
->
pw_name
)
+
1
);
if
(
!
name
)
{
syslog
(
LOG_ERR
,
"Not enough memory"
);
return
NULL
;
}
sprintf
(
name
,
"%s%s"
,
mu_path_maildir
,
pw
->
pw_name
);
}
else
name
=
strdup
(
"/dev/null"
);
}
else
name
=
namespace_checkfullpath
(
name
,
NULL
,
delim
);
return
name
;
}
...
...
Please
register
or
sign in
to post a comment