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
9044e249
...
9044e24905cfa8794b176a53ea009cf2fa2f9906
authored
2003-02-13 16:36:53 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_format_str): New function.
1 parent
bc83411a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
mh/mh_format.c
mh/mh_format.c
View file @
9044e24
...
...
@@ -559,6 +559,23 @@ mh_format (mh_format_t *fmt, message_t msg, size_t msgno,
return
mach
.
ind
;
}
int
mh_format_str
(
mh_format_t
*
fmt
,
char
*
str
,
size_t
width
,
char
**
pret
)
{
message_t
msg
=
NULL
;
header_t
hdr
=
NULL
;
int
rc
;
if
(
message_create
(
&
msg
,
NULL
))
return
-
1
;
message_get_header
(
msg
,
&
hdr
);
header_set_value
(
hdr
,
"text"
,
str
,
1
);
rc
=
mh_format
(
fmt
,
msg
,
1
,
width
,
pret
);
message_destroy
(
&
msg
,
NULL
);
return
rc
;
}
void
mh_format_dump
(
mh_format_t
*
fmt
)
{
...
...
Please
register
or
sign in
to post a comment