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
bdd1435e
...
bdd1435eaaedfa9ae728f3defd6d9480088c853c
authored
2007-06-28 08:16:31 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update
1 parent
738c2bda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
NEWS
NEWS
View file @
bdd1435
...
...
@@ -70,13 +70,37 @@ e.g. to get the last 'Recieved' header:
mu_header_sget_value_n (header, "Received", -1, &str);
For backward compatibility, traditional header accessors are still
provided, b
ut they are implemented as macros, expanding
to the
provided, b
eing implemented as macros that expand
to the
corresponding `_n' style accessors.
Important note: `mu_header_aget_value' does not allocate any memory
if the requested header was not found. In previous releases it used
to return a pointer to an empty string ("") in that case.
if the requested header was not found. This differs from its behavior
in previous releases, where it used to return a pointer to an empty
string ("") in that case.
New functions are provided for adding and replacing headers:
- int mu_header_prepend (mu_header_t header, const char *name, const char *val)
Prepends header `name: val' to the existing headers;
- int mu_header_append (mu_header_t header, const char *name, const char *val)
Appends header `name: val' to the existing headers
- int mu_header_insert (mu_header_t header, const char *name, const char *val,
const char *ref, int num, int flags)
Inserts header `name: val'. The insertion position is determined by
the last three arguments:
-- If flags is MU_HEADER_REPLACE and the header with the same name
exists, it is replaced by the new header. Otherwise:
-- If ref == NULL, the header is added before the existing ones;
-- If ref is not NULL, the new header is inserted after `num'th
occurrence of the header named `ref'. If flags is
MU_HEADER_BEFORE, it is inserted before that occurrence.
** New functions `mu_address_set_local_part', `mu_address_set_domain',
`mu_address_set_route', `mu_address_set_email'
...
...
Please
register
or
sign in
to post a comment