1 /** 2 * @file 3 * Imap-specific Email data 4 * 5 * @authors 6 * Copyright (C) 2021 Richard Russon <rich@flatcap.org> 7 * 8 * @copyright 9 * This program is free software: you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License as published by the Free Software 11 * Foundation, either version 2 of the License, or (at your option) any later 12 * version. 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * details. 18 * 19 * You should have received a copy of the GNU General Public License along with 20 * this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 #ifndef MUTT_IMAP_EDATA_H 24 #define MUTT_IMAP_EDATA_H 25 26 #include <stdbool.h> 27 28 struct Email; 29 30 /** 31 * struct ImapEmailData - IMAP-specific Email data - @extends Email 32 */ 33 struct ImapEmailData 34 { 35 /* server-side flags */ 36 bool read : 1; ///< Email has been read 37 bool old : 1; ///< Email has been seen 38 bool deleted : 1; ///< Email has been deleted 39 bool flagged : 1; ///< Email has been flagged 40 bool replied : 1; ///< Email has been replied to 41 42 bool parsed : 1; 43 44 unsigned int uid; ///< 32-bit Message UID 45 unsigned int msn; ///< Message Sequence Number 46 47 char *flags_system; 48 char *flags_remote; 49 }; 50 51 void imap_edata_free(void **ptr); 52 struct ImapEmailData *imap_edata_get (struct Email *e); 53 struct ImapEmailData *imap_edata_new (void); 54 55 #endif /* MUTT_IMAP_EDATA_H */ 56