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
791ea61a
...
791ea61af155b54ecd10e41e750a2316c3f06289
authored
2003-08-21 16:23:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added support for aliases.
1 parent
821978ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
mh/whom.c
mh/whom.c
View file @
791ea61
...
...
@@ -25,7 +25,7 @@ static char args_doc[] = "[file]";
/* GNU options */
static
struct
argp_option
options
[]
=
{
{
"alias"
,
ARG_ALIAS
,
N_
(
"FILE"
),
0
,
N_
(
"
*
Specify additional alias file"
)
},
N_
(
"Specify additional alias file"
)
},
{
"draft"
,
ARG_DRAFT
,
NULL
,
0
,
N_
(
"Use prepared draft"
)
},
{
"draftfolder"
,
ARG_DRAFTFOLDER
,
N_
(
"FOLDER"
),
0
,
...
...
@@ -65,7 +65,8 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
switch
(
key
)
{
case
ARG_ALIAS
:
return
1
;
mh_alias_read
(
arg
,
1
);
break
;
case
ARG_DRAFT
:
use_draft
=
1
;
...
...
@@ -124,6 +125,8 @@ main (int argc, char **argv)
if
(
!
draft_folder
)
draft_folder
=
mh_global_profile_get
(
"Draft-Folder"
,
mu_path_folder_dir
);
return
mh_whom
(
mh_expand_name
(
draft_folder
,
name
,
0
),
check_recipients
)
?
1
:
0
;
}
...
...
Please
register
or
sign in
to post a comment