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
ff6875c7
...
ff6875c7f1018b5ee7c5461c883788bc1703c064
authored
2005-11-15 15:14:27 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(is_proto): Replace by mu_is_proto. All callers updated
1 parent
11a83f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
mailbox/mbx_default.c
mailbox/mbx_default.c
View file @
ff6875c
...
...
@@ -90,15 +90,6 @@ mu_construct_user_mailbox_url (char **pout, const char *name)
#define USE_ENVIRON 1
static
int
is_proto
(
const
char
*
p
)
{
for
(;
*
p
&&
*
p
!=
'/'
;
p
++
)
if
(
*
p
==
':'
)
return
1
;
return
0
;
}
static
int
split_shortcut
(
const
char
*
file
,
const
char
pfx
[],
char
**
user
,
char
**
rest
)
{
*
user
=
NULL
;
...
...
@@ -249,7 +240,7 @@ plus_expand (const char *file, char **buf)
return
ENOENT
;
}
if
(
folder_dir
[
0
]
==
'/'
||
is_proto
(
folder_dir
))
if
(
folder_dir
[
0
]
==
'/'
||
mu_
is_proto
(
folder_dir
))
{
len
=
strlen
(
folder_dir
)
+
strlen
(
path
)
+
2
;
*
buf
=
malloc
(
len
);
...
...
@@ -391,7 +382,7 @@ mu_mailbox_create_default (mu_mailbox_t *pmbox, const char *mail)
break
;
default:
if
(
!
is_proto
(
mail
))
if
(
!
mu_
is_proto
(
mail
))
{
tmp_mbox
=
mu_getcwd
();
mbox
=
malloc
(
strlen
(
tmp_mbox
)
+
strlen
(
mail
)
+
2
);
...
...
Please
register
or
sign in
to post a comment