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
1eb15fd2
...
1eb15fd2069ed8df6590263ba3e86c79cd99eb85
authored
2003-08-07 08:53:27 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
use header_get_value_unfold
1 parent
7f2b2ef2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
frm/frm.c
mail/from.c
frm/frm.c
View file @
1eb15fd
...
...
@@ -174,7 +174,7 @@ get_personal (header_t hdr, const char *field, char *personal, size_t buflen)
/* Empty string. */
*
hfield
=
'\0'
;
status
=
header_get_value
(
hdr
,
field
,
hfield
,
sizeof
(
hfield
),
NULL
);
status
=
header_get_value
_unfold
(
hdr
,
field
,
hfield
,
sizeof
(
hfield
),
NULL
);
if
(
status
==
0
)
{
address_t
address
=
NULL
;
...
...
@@ -242,8 +242,8 @@ action (observer_t o, size_t type)
if
(
show_field
)
{
char
hfield
[
256
];
int
status
=
header_get_value
(
hdr
,
show_field
,
hfield
,
sizeof
(
hfield
),
NULL
);
int
status
=
header_get_value
_unfold
(
hdr
,
show_field
,
hfield
,
sizeof
(
hfield
),
NULL
);
if
(
status
==
0
)
printf
(
"%s"
,
hfield
);
}
...
...
@@ -272,8 +272,9 @@ action (observer_t o, size_t type)
if
(
show_subject
)
{
char
hsubject
[
64
];
int
status
=
header_get_value
(
hdr
,
MU_HEADER_SUBJECT
,
hsubject
,
sizeof
(
hsubject
),
NULL
);
int
status
=
header_get_value_unfold
(
hdr
,
MU_HEADER_SUBJECT
,
hsubject
,
sizeof
(
hsubject
),
NULL
);
if
(
status
==
0
)
printf
(
"%s"
,
hsubject
);
}
...
...
mail/from.c
View file @
1eb15fd
...
...
@@ -38,7 +38,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
mu_timezone
tz
;
message_get_header
(
msg
,
&
hdr
);
if
(
header_aget_value
(
hdr
,
MU_HEADER_FROM
,
&
from
)
==
0
)
if
(
header_aget_value
_unfold
(
hdr
,
MU_HEADER_FROM
,
&
from
)
==
0
)
{
address_t
address
=
NULL
;
if
(
address_create
(
&
address
,
from
)
==
0
)
...
...
@@ -57,7 +57,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
address_destroy
(
&
address
);
}
}
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
subj
);
header_aget_value
_unfold
(
hdr
,
MU_HEADER_SUBJECT
,
&
subj
);
message_get_attribute
(
msg
,
&
attr
);
...
...
Please
register
or
sign in
to post a comment