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
c6594c99
...
c6594c9993275c999d7d70b7c63bb49070da1414
authored
2002-11-20 12:30:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(sieve_tag_lookup): New function.
1 parent
dee48251
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
libsieve/util.c
libsieve/util.c
View file @
c6594c9
...
...
@@ -359,6 +359,34 @@ sieve_print_tag_list (list_t list, sieve_printf_t printer, void *data)
list_do
(
list
,
(
list_action_t
*
)
tag_printer
,
&
dbg
);
}
static
int
tag_finder
(
void
*
item
,
void
*
data
)
{
sieve_runtime_tag_t
*
val
=
item
;
sieve_runtime_tag_t
*
target
=
data
;
if
(
strcmp
(
val
->
tag
,
target
->
tag
)
==
0
)
{
target
->
arg
=
val
->
arg
;
return
1
;
}
return
0
;
}
int
sieve_tag_lookup
(
list_t
taglist
,
char
*
name
,
sieve_value_t
**
arg
)
{
sieve_runtime_tag_t
t
;
t
.
tag
=
name
;
if
(
list_do
(
taglist
,
tag_finder
,
&
t
))
{
if
(
arg
)
*
arg
=
t
.
arg
;
return
1
;
}
return
0
;
}
int
sieve_mark_deleted
(
message_t
msg
,
int
deleted
)
...
...
Please
register
or
sign in
to post a comment