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
0107ff9e
...
0107ff9e7b3e890f6ecbea0930d088ef6f6d5f56
authored
2002-08-01 09:01:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap4d_store0): Use fetch_flags0.
1 parent
6a161127
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
imap4d/store.c
imap4d/store.c
View file @
0107ff9
...
...
@@ -107,7 +107,6 @@ imap4d_store0 (char *arg, int isuid, char *resp, size_t resplen)
message_t
msg
=
NULL
;
attribute_t
attr
=
NULL
;
char
*
items
=
strdup
(
sp
);
/* Don't use the orignal list. */
char
*
flags
=
strdup
(
""
);
int
first
=
1
;
size_t
msgno
;
char
*
p
=
items
;
...
...
@@ -140,17 +139,16 @@ imap4d_store0 (char *arg, int isuid, char *resp, size_t resplen)
attribute_set_flags
(
attr
,
type
);
}
attribute_set_flags
(
attr
,
MU_ATTRIBUTE_MODIFIED
);
flags
=
realloc
(
flags
,
strlen
(
flags
)
+
strlen
(
item
)
+
2
);
if
(
*
flags
)
strcat
(
flags
,
" "
);
strcat
(
flags
,
item
);
}
}
}
if
(
ack
&&
*
flags
)
util_out
(
RESP_NONE
,
"%d FETCH FLAGS (%s)"
,
msgno
,
flags
);
if
(
ack
)
{
util_send
(
"* %d FETCH "
,
msgno
);
fetch_flags0
(
"FLAGS"
,
msg
,
isuid
);
util_send
(
"
\n
"
);
}
free
(
p
);
free
(
flags
);
/* Update the flags of uid table. */
imap4d_sync_flags
(
set
[
i
]);
}
...
...
Please
register
or
sign in
to post a comment