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
bbe0e352
...
bbe0e3520ff6bda54eb9ca92ee1b47c099049da1
authored
2003-03-15 23:24:36 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Updated invocations of mhl_format_run().
1 parent
c78a9265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
mh/mhl.c
mh/repl.c
mh/mhl.c
View file @
bbe0e35
...
...
@@ -62,8 +62,8 @@ struct mh_option mh_option[] = {
};
static
int
interactive
;
/* Using interactive output */
static
int
bell
=
1
;
/* Ring the bell after each page of output */
static
int
clear
=
0
;
/* Clear the screen after each page of output
*/
static
int
mhl_fmt_flags
;
/* MHL format flags. Controlled by --bell
and --clear
*/
static
int
length
=
40
;
/* Length of output page */
static
int
width
=
80
;
/* Width of output page */
static
char
*
formfile
=
MHLIBDIR
"/mhl.format"
;
...
...
@@ -82,19 +82,21 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
break
;
case
ARG_BELL
:
bell
=
is_true
(
arg
);
if
(
is_true
(
arg
))
mhl_fmt_flags
|=
MHL_BELL
;
break
;
case
ARG_NOBELL
:
bell
=
0
;
mhl_fmt_flags
&=
~
MHL_BELL
;
break
;
case
ARG_CLEAR
:
clear
=
is_true
(
arg
);
if
(
is_true
(
arg
))
mhl_fmt_flags
|=
MHL_CLEARSCREEN
;
break
;
case
ARG_NOCLEAR
:
clear
=
0
;
mhl_fmt_flags
&=
~
MHL_CLEARSCREEN
;
break
;
case
ARG_FORM
:
...
...
@@ -197,7 +199,7 @@ list_message (char *name, stream_t output)
}
else
{
mhl_format_run
(
format
,
width
,
length
,
clear
,
bell
,
msg
,
output
);
mhl_format_run
(
format
,
width
,
length
,
mhl_fmt_flags
,
msg
,
output
);
message_unref
(
msg
);
}
}
...
...
@@ -225,7 +227,7 @@ main (int argc, char **argv)
nomoreproc
=
1
;
if
(
!
interactive
)
bell
=
0
;
mhl_fmt_flags
&=
~
MHL_BELL
;
output
=
open_output
();
...
...
mh/repl.c
View file @
bbe0e35
...
...
@@ -282,7 +282,7 @@ make_draft (mailbox_t mbox, int disp, struct mh_whatnow_env *wh)
list_t
filter
=
mhl_format_compile
(
mhl_filter
);
if
(
!
filter
)
exit
(
1
);
mhl_format_run
(
filter
,
width
,
0
,
0
,
0
,
msg
,
str
);
mhl_format_run
(
filter
,
width
,
0
,
0
,
msg
,
str
);
mhl_format_destroy
(
&
filter
);
}
...
...
Please
register
or
sign in
to post a comment