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
0857c6ee
...
0857c6ee65572f1e4e77089786241b5e4e0160ba
authored
2001-08-03 19:02:47 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added mu-message-get-size, mu-message-get-lines.
1 parent
c4658659
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
libmu_scm/mu_message.c
libmu_scm/mu_message.c
View file @
0857c6e
...
...
@@ -227,6 +227,33 @@ SCM_DEFINE (mu_message_set_header, "mu-message-set-header", 3, 1, 0,
}
#undef FUNC_NAME
SCM_DEFINE
(
mu_message_get_size
,
"mu-message-get-size"
,
1
,
0
,
0
,
(
SCM
MESG
),
"Returns the size of the given message."
)
#define FUNC_NAME s_mu_message_get_size
{
message_t
msg
;
size_t
size
;
SCM_ASSERT
(
mu_scm_is_message
(
MESG
),
MESG
,
SCM_ARG1
,
FUNC_NAME
);
msg
=
mu_scm_message_get
(
MESG
);
message_size
(
msg
,
&
size
);
return
scm_makenum
(
size
);
}
#undef FUNC_NAME
SCM_DEFINE
(
mu_message_get_lines
,
"mu-message-get-lines"
,
1
,
0
,
0
,
(
SCM
MESG
),
"Returns number of lines in the given message."
)
#define FUNC_NAME s_mu_message_get_lines
{
message_t
msg
;
size_t
lines
;
SCM_ASSERT
(
mu_scm_is_message
(
MESG
),
MESG
,
SCM_ARG1
,
FUNC_NAME
);
msg
=
mu_scm_message_get
(
MESG
);
message_lines
(
msg
,
&
lines
);
return
scm_makenum
(
lines
);
}
#undef FUNC_NAME
SCM_DEFINE
(
mu_message_get_sender
,
"mu-message-get-sender"
,
1
,
0
,
0
,
(
SCM
MESG
),
...
...
Please
register
or
sign in
to post a comment