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
0eb20f43
...
0eb20f4388e3133c41c2e45b1355a3d6291e59f7
authored
2004-01-13 15:40:04 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(action): Optimized select condition
1 parent
41fbb0c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
frm/frm.c
frm/frm.c
View file @
0eb20f4
...
...
@@ -350,24 +350,10 @@ action (observer_t o, size_t type)
message_get_attribute
(
msg
,
&
attr
);
message_get_header
(
msg
,
&
hdr
);
if
(
select_attribute
&&
(
select_attribute
&
IS_READ
)
&&
(
!
attribute_is_read
(
attr
)))
{
break
;
}
else
if
(
select_attribute
&&
(
select_attribute
&
IS_NEW
)
&&
(
!
attribute_is_recent
(
attr
)))
{
break
;
}
else
if
(
select_attribute
&&
(
select_attribute
&
IS_OLD
)
&&
(
!
attribute_is_seen
(
attr
)))
{
break
;
}
if
(((
select_attribute
&
IS_READ
)
&&
(
!
attribute_is_read
(
attr
)))
||
(
select_attribute
&
IS_NEW
)
&&
(
!
attribute_is_recent
(
attr
))
||
(
select_attribute
&
IS_OLD
)
&&
(
!
attribute_is_seen
(
attr
)))
break
;
if
(
attribute_is_recent
(
attr
))
have_new_mail
=
1
;
...
...
Please
register
or
sign in
to post a comment