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
190bf9a7
...
190bf9a7b2ec72194dfdd3ba4768bc1887fa9dcd
authored
2002-09-27 13:25:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Do not use current_folder global.
1 parent
2d22d0d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
mh/inc.c
mh/inc.c
View file @
190bf9a
...
...
@@ -21,7 +21,7 @@
const
char
*
argp_program_version
=
"inc ("
PACKAGE_STRING
")"
;
static
char
doc
[]
=
"GNU MH inc"
;
static
char
args_doc
[]
=
""
;
static
char
args_doc
[]
=
"
[+folder]
"
;
/* GNU options */
static
struct
argp_option
options
[]
=
{
...
...
@@ -66,12 +66,18 @@ static FILE *audit_fp;
static
int
changecur
=
-
1
;
static
int
truncate_source
=
-
1
;
static
int
quiet
=
0
;
static
char
*
append_folder
;
static
int
opt_handler
(
int
key
,
char
*
arg
,
void
*
unused
)
{
switch
(
key
)
{
case
ARGP_KEY_FINI
:
if
(
!
append_folder
)
append_folder
=
mh_global_profile_get
(
"Inbox"
,
"inbox"
);
break
;
case
'a'
:
audit_file
=
arg
;
break
;
...
...
@@ -86,7 +92,7 @@ opt_handler (int key, char *arg, void *unused)
case
'+'
:
case
'f'
:
current
_folder
=
arg
;
append
_folder
=
arg
;
break
;
case
'F'
:
...
...
@@ -187,7 +193,7 @@ main (int argc, char **argv)
exit
(
1
);
}
output
=
mh_open_folder
(
current
_folder
,
1
);
output
=
mh_open_folder
(
append
_folder
,
1
);
if
(
mailbox_messages_count
(
output
,
&
lastmsg
)
!=
0
)
{
mh_error
(
"Can not read output mailbox"
);
...
...
Please
register
or
sign in
to post a comment