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
94414890
...
944148909c6751ccf6e5f223a7420fe721ff86bb
authored
2002-08-04 08:22:41 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap_flags): Empty attribute list means MU_ATTRIBUTE_SEEN.
1 parent
2e38ebed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
mailbox/folder_imap.c
mailbox/folder_imap.c
View file @
9441489
...
...
@@ -1451,27 +1451,33 @@ imap_flags (char **ptr, int *pflags)
break
;
/* Guess the flag. */
if
(
strncasecmp
(
start
,
"
\\
Seen"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_SEEN
;
flags
|=
MU_ATTRIBUTE_READ
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Answered"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_ANSWERED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Flagged"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_FLAGGED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Deleted"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_DELETED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Draft"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_DRAFT
;
}
if
(
end
==
start
)
flags
|=
MU_ATTRIBUTE_SEEN
;
else
{
if
(
strncasecmp
(
start
,
"
\\
Seen"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_READ
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Answered"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_ANSWERED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Flagged"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_FLAGGED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Deleted"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_DELETED
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Draft"
,
end
-
start
)
==
0
)
{
flags
|=
MU_ATTRIBUTE_DRAFT
;
}
else
if
(
strncasecmp
(
start
,
"
\\
Recent"
,
end
-
start
))
flags
|=
MU_ATTRIBUTE_SEEN
;
}
}
while
(
**
ptr
&&
**
ptr
!=
')'
);
/* do {} */
...
...
Please
register
or
sign in
to post a comment