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
93304ed3
...
93304ed34c3d1ff9bd736dc9b3a216cfc73a2096
authored
2005-11-28 11:16:59 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(read_mts_profile): Allow .mtstailor to override system-wide configuration values.
1 parent
f19a9bb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
mh/send.c
mh/send.c
View file @
93304ed
...
...
@@ -275,18 +275,17 @@ void
read_mts_profile
()
{
char
*
p
;
mh_context_t
*
local_profile
;
p
=
mh_expand_name
(
MHLIBDIR
,
"mtstailor"
,
0
);
if
(
!
p
)
{
char
*
home
=
mu_get_homedir
();
if
(
!
home
)
abort
();
/* shouldn't happen */
asprintf
(
&
p
,
"%s/%s"
,
home
,
".mtstailor"
);
free
(
home
);
}
mts_profile
=
mh_context_create
(
p
,
1
);
mh_context_read
(
mts_profile
);
p
=
mu_tilde_expansion
(
"~/.mtstailor"
,
"/"
,
NULL
);
local_profile
=
mh_context_create
(
p
,
1
);
if
(
mh_context_read
(
local_profile
)
==
0
)
mh_context_merge
(
mts_profile
,
local_profile
);
mh_context_destroy
(
&
local_profile
);
}
...
...
Please
register
or
sign in
to post a comment