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
2861b15e
...
2861b15e499a181a87fec588cc490913a33dc719
authored
2003-02-14 11:41:32 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(address_get_nth): New function. Get Nth subaddress from an address.
1 parent
53c4cc94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
include/mailutils/address.h
mailbox/address.c
include/mailutils/address.h
View file @
2861b15
...
...
@@ -33,6 +33,8 @@ extern address_t address_dup __P ((address_t src));
/* Set FROM to null, after adding its addresses to TO. */
extern
int
address_concatenate
__P
((
address_t
to
,
address_t
*
from
));
extern
int
address_get_nth
__P
((
address_t
addr
,
size_t
no
,
address_t
*
pret
));
extern
int
address_get_email
__P
((
address_t
,
size_t
,
char
*
,
size_t
,
size_t
*
));
extern
int
address_get_local_part
...
...
mailbox/address.c
View file @
2861b15
...
...
@@ -202,6 +202,16 @@ _address_get_nth (address_t addr, size_t no)
}
int
address_get_nth
(
address_t
addr
,
size_t
no
,
address_t
*
pret
)
{
address_t
subaddr
=
_address_get_nth
(
addr
,
no
);
if
(
!
subaddr
)
return
ENOENT
;
*
pret
=
address_dup
(
subaddr
);
return
0
;
}
int
address_get_personal
(
address_t
addr
,
size_t
no
,
char
*
buf
,
size_t
len
,
size_t
*
n
)
{
...
...
Please
register
or
sign in
to post a comment