Manipulate the flags in an email header. More...
#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "index/lib.h"
#include "keymap.h"
#include "mutt_thread.h"
#include "opcodes.h"
#include "protos.h"
Go to the source code of this file.
Functions | |
void | mutt_set_flag_update (struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox) |
Set a flag on an email. More... | |
void | mutt_emails_set_flag (struct Mailbox *m, struct EmailList *el, enum MessageType flag, bool bf) |
Set flag on messages. More... | |
int | mutt_thread_set_flag (struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread) |
Set a flag on an entire thread. More... | |
int | mutt_change_flag (struct Mailbox *m, struct EmailList *el, bool bf) |
Change the flag on a Message. More... | |
Manipulate the flags in an email header.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file flags.c.
void mutt_set_flag_update | ( | struct Mailbox * | m, |
struct Email * | e, | ||
enum MessageType | flag, | ||
bool | bf, | ||
bool | upd_mbox | ||
) |
Set a flag on an email.
m | Mailbox |
e | |
flag | Flag to set, e.g. MUTT_DELETE |
bf | true: set the flag; false: clear the flag |
upd_mbox | true: update the Mailbox |
Definition at line 52 of file flags.c.
void mutt_emails_set_flag | ( | struct Mailbox * | m, |
struct EmailList * | el, | ||
enum MessageType | flag, | ||
bool | bf | ||
) |
Set flag on messages.
m | Mailbox |
el | List of Emails to flag |
flag | Flag to set, e.g. MUTT_DELETE |
bf | true: set the flag; false: clear the flag |
Definition at line 355 of file flags.c.
int mutt_thread_set_flag | ( | struct Mailbox * | m, |
struct Email * | e, | ||
enum MessageType | flag, | ||
bool | bf, | ||
bool | subthread | ||
) |
Set a flag on an entire thread.
m | Mailbox |
e | |
flag | Flag to set, e.g. MUTT_DELETE |
bf | true: set the flag; false: clear the flag |
subthread | If true apply to all of the thread |
0 | Success |
-1 | Failure |
Definition at line 378 of file flags.c.
int mutt_change_flag | ( | struct Mailbox * | m, |
struct EmailList * | el, | ||
bool | bf | ||
) |
Change the flag on a Message.
m | Mailbox |
el | List of Emails to change |
bf | true: set the flag; false: clear the flag |
0 | Success |
-1 | Failure |
Definition at line 437 of file flags.c.