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
08d86aef
...
08d86aef5215bbe39916ca04cd69df51fa0e65ba
authored
2002-08-04 08:10:49 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(cond_keyword): Use util_attribute_matches_flag.
1 parent
71f76a75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
16 deletions
imap4d/search.c
imap4d/search.c
View file @
08d86ae
...
...
@@ -837,25 +837,10 @@ void
cond_keyword
(
struct
parsebuf
*
pb
)
{
char
*
s
=
_search_arg
(
pb
);
int
rc
;
attribute_t
attr
=
NULL
;
message_get_attribute
(
pb
->
msg
,
&
attr
);
if
(
!
strcmp
(
s
,
"
\\
Seen"
))
rc
=
attribute_is_seen
(
attr
);
else
if
(
!
strcmp
(
s
,
"
\\
Answered"
))
rc
=
attribute_is_answered
(
attr
);
else
if
(
!
strcmp
(
s
,
"
\\
Flagged"
))
rc
=
attribute_is_flagged
(
attr
);
else
if
(
!
strcmp
(
s
,
"
\\
Deleted"
))
rc
=
attribute_is_deleted
(
attr
);
else
if
(
!
strcmp
(
s
,
"
\\
Draft"
))
rc
=
attribute_is_draft
(
attr
);
else
if
(
!
strcmp
(
s
,
"
\\
Recent"
))
rc
=
attribute_is_recent
(
attr
);
else
rc
=
0
;
_search_push
(
pb
,
rc
);
_search_push
(
pb
,
util_attribute_matches_flag
(
attr
,
s
));
}
void
...
...
Please
register
or
sign in
to post a comment