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
02bc3fa5
...
02bc3fa5df5826ab3f2e96095a78e20e2b0dfc1e
authored
2003-08-07 08:52:09 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_string_unfold): New function.
1 parent
a69ba104
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
include/mailutils/mutil.h
mailbox/mutil.c
include/mailutils/mutil.h
View file @
02bc3fa
...
...
@@ -119,6 +119,7 @@ extern int mu_rfc2822_in_reply_to __P((message_t msg, char **pstr));
/* Find NEEDLE in the HAYSTACK. Case insensitive comparison */
extern
char
*
mu_strcasestr
__P
((
const
char
*
haystack
,
const
char
*
needle
));
extern
int
mu_string_unfold
__P
((
char
*
text
,
size_t
*
plen
));
#ifdef __cplusplus
}
...
...
mailbox/mutil.c
View file @
02bc3fa
...
...
@@ -1097,3 +1097,20 @@ ret0:
#undef U
}
int
mu_string_unfold
(
char
*
text
,
size_t
*
plen
)
{
char
*
p
,
*
q
;
if
(
!
text
)
return
EINVAL
;
for
(
p
=
q
=
text
;
*
q
;
q
++
)
if
(
*
q
!=
'\n'
)
*
p
++
=
*
q
;
*
p
++
=
0
;
if
(
plen
)
*
plen
=
p
-
text
;
return
0
;
}
...
...
Please
register
or
sign in
to post a comment