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
e7a6f1b3
...
e7a6f1b394927aca592c4183e9ec2b7cd0656555
authored
2005-12-08 00:34:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make sure -nodraftfolder cancels Draft-Folder variable, not only -draftfolder option.
1 parent
0c2ca624
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
mh/comp.c
mh/forw.c
mh/repl.c
mh/comp.c
View file @
e7a6f1b
...
...
@@ -86,6 +86,11 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
{
switch
(
key
)
{
case
ARGP_KEY_INIT
:
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
break
;
case
ARG_BUILD
:
build_only
=
1
;
break
;
...
...
@@ -209,10 +214,6 @@ main (int argc, char **argv)
mh_argp_parse
(
&
argc
,
&
argv
,
0
,
options
,
mh_option
,
args_doc
,
doc
,
opt_handler
,
NULL
,
&
index
);
if
(
!
wh_env
.
draftfolder
)
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
wh_env
.
file
=
mh_expand_name
(
wh_env
.
draftfolder
,
"comp"
,
0
);
if
(
!
wh_env
.
draftfile
)
wh_env
.
draftfile
=
mh_expand_name
(
wh_env
.
draftfolder
,
"draft"
,
0
);
...
...
mh/forw.c
View file @
e7a6f1b
...
...
@@ -121,6 +121,11 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
{
switch
(
key
)
{
case
ARGP_KEY_INIT
:
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
break
;
case
ARG_ANNOTATE
:
annotate
=
is_true
(
arg
);
break
;
...
...
@@ -427,10 +432,6 @@ main (int argc, char **argv)
mbox
=
mh_open_folder
(
current_folder
,
0
);
mh_msgset_parse
(
mbox
,
&
msgset
,
argc
,
argv
,
"cur"
);
if
(
!
wh_env
.
draftfolder
)
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
wh_env
.
file
=
mh_expand_name
(
wh_env
.
draftfolder
,
"forw"
,
0
);
if
(
!
wh_env
.
draftfile
)
wh_env
.
draftfile
=
mh_expand_name
(
wh_env
.
draftfolder
,
"draft"
,
0
);
...
...
mh/repl.c
View file @
e7a6f1b
...
...
@@ -142,6 +142,11 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
switch
(
key
)
{
case
ARGP_KEY_INIT
:
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
break
;
case
ARG_ANNOTATE
:
annotate
=
is_true
(
arg
);
break
;
...
...
@@ -376,6 +381,7 @@ main (int argc, char **argv)
mu_init_nls
();
mu_argp_init
(
program_version
,
NULL
);
mh_argp_parse
(
&
argc
,
&
argv
,
0
,
options
,
mh_option
,
args_doc
,
doc
,
opt_handler
,
NULL
,
&
index
);
if
(
mh_format_parse
(
format_str
,
&
format
))
...
...
@@ -384,10 +390,6 @@ main (int argc, char **argv)
exit
(
1
);
}
if
(
!
wh_env
.
draftfolder
)
wh_env
.
draftfolder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_folder_directory
());
mbox
=
mh_open_folder
(
current_folder
,
0
);
mh_msgset_parse
(
mbox
,
&
msgset
,
argc
-
index
,
argv
+
index
,
"cur"
);
if
(
msgset
.
count
!=
1
)
...
...
Please
register
or
sign in
to post a comment