Manipulate an email's header. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "alias/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "mutt_header.h"
#include "complete/lib.h"
#include "editor/lib.h"
#include "history/lib.h"
#include "index/lib.h"
#include "ncrypt/lib.h"
#include "postpone/lib.h"
#include "send/lib.h"
#include "globals.h"
#include "muttlib.h"
#include "mview.h"
Go to the source code of this file.
Functions | |
static void | label_ref_dec (struct Mailbox *m, char *label) |
Decrease the refcount of a label. | |
static void | label_ref_inc (struct Mailbox *m, char *label) |
Increase the refcount of a label. | |
static bool | label_message (struct Mailbox *m, struct Email *e, char *new_label) |
Add an X-Label: field. | |
int | mutt_label_message (struct MailboxView *mv, struct EmailArray *ea) |
Let the user label a message. | |
void | mutt_edit_headers (const char *editor, const char *body, struct Email *e, struct Buffer *fcc) |
Let the user edit the message header and body. | |
void | mutt_make_label_hash (struct Mailbox *m) |
Create a Hash Table to store the labels. | |
void | mutt_label_hash_add (struct Mailbox *m, struct Email *e) |
Add a message's labels to the Hash Table. | |
void | mutt_label_hash_remove (struct Mailbox *m, struct Email *e) |
Remove a message's labels from the Hash Table. | |
Manipulate an email's 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 mutt_header.c.
|
static |
Decrease the refcount of a label.
m | Mailbox |
label | Label |
Definition at line 61 of file mutt_header.c.
|
static |
Increase the refcount of a label.
m | Mailbox |
label | Label |
Definition at line 83 of file mutt_header.c.
Add an X-Label: field.
true | The label was added |
Definition at line 107 of file mutt_header.c.
int mutt_label_message | ( | struct MailboxView * | mv, |
struct EmailArray * | ea | ||
) |
Let the user label a message.
mv | Mailbox |
ea | Array of Emails to label |
num | Number of messages changed |
Definition at line 130 of file mutt_header.c.
void mutt_edit_headers | ( | const char * | editor, |
const char * | body, | ||
struct Email * | e, | ||
struct Buffer * | fcc | ||
) |
Let the user edit the message header and body.
Definition at line 181 of file mutt_header.c.
void mutt_make_label_hash | ( | struct Mailbox * | m | ) |
Create a Hash Table to store the labels.
m | Mailbox |
Definition at line 403 of file mutt_header.c.
Add a message's labels to the Hash Table.
Definition at line 415 of file mutt_header.c.
Remove a message's labels from the Hash Table.
Definition at line 428 of file mutt_header.c.