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
e92c860e
...
e92c860e1bfd6121e57ae603dbaff1e5fec135e5
authored
2003-02-10 01:03:15 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_auto_install): New global.
(mh_read_profile): Call mh_install() if necessary.
1 parent
d3a20901
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
mh/mh_global.c
mh/mh_global.c
View file @
e92c860
...
...
@@ -25,6 +25,7 @@ mh_context_t *context;
mh_context_t
*
profile
;
mh_context_t
*
sequences
;
int
rcpt_mask
=
RCPT_DEFAULT
;
int
mh_auto_install
=
1
;
/* Global profile */
...
...
@@ -56,6 +57,10 @@ mh_read_profile ()
asprintf
(
&
p
,
"%s/%s"
,
home
,
MH_USER_PROFILE
);
free
(
home
);
}
if
(
mh_auto_install
&&
access
(
p
,
R_OK
))
mh_install
(
p
,
1
);
profile
=
mh_context_create
(
p
,
1
);
mh_context_read
(
profile
);
}
...
...
@@ -72,7 +77,7 @@ _mh_init_global_context ()
mu_path_folder_dir
=
mh_get_dir
();
p
=
getenv
(
"CONTEXT"
);
if
(
!
p
)
p
=
"context"
;
p
=
MH_CONTEXT_FILE
;
ctx_name
=
mh_expand_name
(
NULL
,
p
,
0
);
context
=
mh_context_create
(
ctx_name
,
1
);
mh_context_read
(
context
);
...
...
@@ -97,6 +102,13 @@ mh_global_context_set (const char *name, const char *value)
return
mh_context_set_value
(
context
,
name
,
value
);
}
int
mh_global_context_iterate
(
mh_context_iterator
fp
,
void
*
data
)
{
_mh_init_global_context
();
return
mh_context_iterate
(
context
,
fp
,
data
);
}
char
*
mh_current_folder
()
{
...
...
@@ -141,6 +153,13 @@ mh_global_sequences_set (const char *name, const char *value)
return
mh_context_set_value
(
sequences
,
name
,
value
);
}
int
mh_global_sequences_iterate
(
mh_context_iterator
fp
,
void
*
data
)
{
_mh_init_global_context
();
return
mh_context_iterate
(
sequences
,
fp
,
data
);
}
/* Global state */
void
...
...
Please
register
or
sign in
to post a comment