void imap_edata_free(void **ptr);
struct ImapEmailData *imap_edata_get(struct Email *e);
int imap_read_headers(struct Mailbox *m, unsigned int msn_begin, unsigned int msn_end, bool initial_download);
-char *imap_set_flags(struct Mailbox *m, struct Email *e, char *s, int *server_changes);
+char *imap_set_flags(struct Mailbox *m, struct Email *e, char *s, bool *server_changes);
int imap_cache_del(struct Mailbox *m, struct Email *e);
int imap_cache_clean(struct Mailbox *m);
int imap_append_message(struct Mailbox *m, struct Message *msg);
* @param[in] m Mailbox
* @param[in] e Email
* @param[in] local_changes Has the local mailbox been changed?
- * @param[out] server_changes Set to 1 if the flag has changed
+ * @param[out] server_changes Set to true if the flag has changed
* @param[in] flag_name Flag to check, e.g. #MUTT_FLAG
* @param[in] old_hd_flag Old header flags
* @param[in] new_hd_flag New header flags
* made.
*/
static void set_changed_flag(struct Mailbox *m, struct Email *e,
- int local_changes, int *server_changes, int flag_name,
+ int local_changes, bool *server_changes, int flag_name,
int old_hd_flag, int new_hd_flag, int h_flag)
{
/* If there are local_changes, we only want to note if the server
return;
if (server_changes)
- *server_changes = 1;
+ *server_changes = true;
/* Local changes have priority */
if (!local_changes)
* @param[in] m Imap Selected Mailbox
* @param[in] e Email
* @param[in] s Command string
- * @param[out] server_changes Flags have changed
+ * @param[out] server_changes Set to true if the flags have changed
* @retval ptr The end of flags string
* @retval NULL Failure
*
* case of e->changed, if a change to a flag _would_ have been
* made.
*/
-char *imap_set_flags(struct Mailbox *m, struct Email *e, char *s, int *server_changes)
+char *imap_set_flags(struct Mailbox *m, struct Email *e, char *s, bool *server_changes)
{
struct ImapAccountData *adata = imap_adata_get(m);
if (!adata || adata->mailbox != m)