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
71f76a75
...
71f76a75f99de8f6b1fd7b9890664cef3828cb73
authored
2002-08-04 08:09:45 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(fetch_flags0): Use util_print_flags.
1 parent
5e3a7e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
36 deletions
imap4d/fetch.c
imap4d/fetch.c
View file @
71f76a7
...
...
@@ -287,7 +287,6 @@ void
fetch_flags0
(
const
char
*
prefix
,
message_t
msg
,
int
isuid
)
{
attribute_t
attr
=
NULL
;
int
space
=
0
;
message_get_attribute
(
msg
,
&
attr
);
if
(
isuid
)
...
...
@@ -299,38 +298,7 @@ fetch_flags0 (const char *prefix, message_t msg, int isuid)
util_send
(
" "
);
}
util_send
(
"%s ("
,
prefix
);
if
(
attribute_is_deleted
(
attr
))
{
util_send
(
"
\\
Deleted"
);
space
=
1
;
}
if
(
attribute_is_answered
(
attr
))
{
if
(
space
)
util_send
(
" "
);
util_send
(
"
\\
Answered"
);
space
=
1
;
}
if
(
attribute_is_flagged
(
attr
))
{
if
(
space
)
util_send
(
" "
);
util_send
(
"
\\
Flagged"
);
space
=
1
;
}
if
(
attribute_is_seen
(
attr
)
&&
attribute_is_read
(
attr
))
{
if
(
space
)
util_send
(
" "
);
util_send
(
"
\\
Seen"
);
space
=
1
;
}
if
(
attribute_is_draft
(
attr
))
{
if
(
space
)
util_send
(
" "
);
util_send
(
"
\\
Draft"
);
}
util_print_flags
(
attr
);
if
(
isuid
)
util_send
(
")"
);
util_send
(
")"
);
...
...
@@ -508,7 +476,11 @@ fetch_bodystructure (struct fetch_command *command, char **arg)
of zero or more part specifiers delimited by periods. A part specifier
is either a part number or one of the following: HEADER, HEADER.FIELDS,
HEADER.FIELDS.NOT, MIME, and TEXT. An empty section specification refers
to the entire message, including the header. */
to the entire message, including the header.
Note: for body section, the \Seen flag is implicitly set;
if this causes the flags to change they SHOULD be
included as part of the FETCH responses. */
static
int
fetch_body
(
struct
fetch_command
*
command
,
char
**
arg
)
{
...
...
@@ -517,10 +489,9 @@ fetch_body (struct fetch_command *command, char **arg)
{
attribute_t
attr
=
NULL
;
message_get_attribute
(
command
->
msg
,
&
attr
);
if
(
!
attribute_is_
seen
(
attr
)
&&
!
attribute_is_
read
(
attr
))
if
(
!
attribute_is_read
(
attr
))
{
util_send
(
"FLAGS (
\\
Seen) "
);
attribute_set_seen
(
attr
);
attribute_set_read
(
attr
);
}
}
...
...
Please
register
or
sign in
to post a comment