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
be9a6e04
...
be9a6e043f972a5944b2b444539ef6265bca78ea
authored
2003-01-16 13:44:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(builtin_in_reply_to, builtin_references): New functions. Interfaces to rfc2822 functions.
1 parent
50c46feb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
mh/mh_format.c
mh/mh_format.c
View file @
be9a6e0
...
...
@@ -1664,6 +1664,28 @@ builtin_printstr (struct mh_machine *mach)
print_obj
(
mach
,
mach
->
reg_num
,
&
mach
->
reg_str
);
}
static
void
builtin_in_reply_to
(
struct
mh_machine
*
mach
)
{
char
*
value
;
strobj_free
(
&
mach
->
arg_str
);
mu_rfc2822_in_reply_to
(
mach
->
message
,
&
value
);
strobj_create
(
&
mach
->
arg_str
,
value
);
free
(
value
);
}
static
void
builtin_references
(
struct
mh_machine
*
mach
)
{
char
*
value
;
strobj_free
(
&
mach
->
reg_str
);
mu_rfc2822_references
(
mach
->
message
,
&
value
);
strobj_create
(
&
mach
->
arg_str
,
value
);
free
(
value
);
}
/* Builtin function table */
mh_builtin_t
builtin_tab
[]
=
{
...
...
@@ -1743,6 +1765,8 @@ mh_builtin_t builtin_tab[] = {
{
"rcpt"
,
builtin_rcpt
,
mhtype_num
,
mhtype_str
},
{
"concat"
,
builtin_concat
,
mhtype_none
,
mhtype_str
,
1
},
{
"printstr"
,
builtin_printstr
,
mhtype_none
,
mhtype_str
},
{
"in_reply_to"
,
builtin_in_reply_to
,
mhtype_str
,
mhtype_none
},
{
"references"
,
builtin_references
,
mhtype_str
,
mhtype_none
},
{
0
}
};
...
...
Please
register
or
sign in
to post a comment