Tag some menu items.
More...
|
| static int | alias_tag (struct Menu *menu, int sel, int act) |
| | Tag some aliases - Implements Menu::tag() -.
|
| |
| static int | query_tag (struct Menu *menu, int sel, int act) |
| | Tag an entry in the Query Menu - Implements Menu::tag() -.
|
| |
| static int | attach_tag (struct Menu *menu, int sel, int act) |
| | Tag an attachment - Implements Menu::tag() -.
|
| |
| static int | file_tag (struct Menu *menu, int sel, int act) |
| | Tag an entry in the menu - Implements Menu::tag() -.
|
| |
| static int | compose_attach_tag (struct Menu *menu, int sel, int act) |
| | Tag an attachment - Implements Menu::tag() -.
|
| |
| static int | post_tag (struct Menu *menu, int sel, int act) |
| | Tag an email in the postpone menu - Implements Menu::tag() -.
|
| |
Tag some menu items.
- Parameters
-
| menu | Menu to tag |
| sel | Current selection |
| act | Action: 0 untag, 1 tag, -1 toggle |
- Return values
-
| num | Net change in number of tagged attachments |
◆ alias_tag()
| static int alias_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
Tag some aliases - Implements Menu::tag() -.
Definition at line 140 of file dlg_alias.c.
141{
143 const struct AliasViewArray *ava = &mdata->
ava;
145
147
149
151}
#define ARRAY_GET(head, idx)
Return the element at index.
GUI data wrapping an Alias.
bool is_tagged
Is it tagged?
◆ query_tag()
| static int query_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
◆ attach_tag()
| static int attach_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
Tag an attachment - Implements Menu::tag() -.
Definition at line 154 of file dlg_attach.c.
155{
158
161
164}
struct AttachPtr ** idx
Array of attachments.
short * v2r
Mapping from virtual to real attachment.
Private state data for Attachments.
struct Menu * menu
Current Menu.
struct AttachCtx * actx
List of all Attachments.
struct Body * body
Attachment.
bool tagged
This attachment is tagged.
◆ file_tag()
| static int file_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
Tag an entry in the menu - Implements Menu::tag() -.
- Parameters
-
| menu | Menu |
| sel | Selection (entry index) |
| act | Action: 0 untag, 1 tag, -1 toggle |
- Returns
- Net change in number of tagged entries (0 or ±1)
This function tags/untags entries in the browser.
- For file selection mode, prevents tagging directories
- For NNTP newsgroups, allows tagging of newsgroup entries for bulk operations
Definition at line 678 of file dlg_browser.c.
679{
682 struct BrowserEntryArray *entry = &priv->
state.
entry;
684
685
686 bool is_nntp = (ff->
nd != NULL);
687 if (!is_nntp &&
688 (S_ISDIR(ff->
mode) ||
690 {
692 return 0;
693 }
694
697
699}
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
bool link_is_dir(const char *folder, const char *path)
Does this symlink point to a directory?
@ MODULE_ID_BROWSER
ModuleBrowser, Mailbox Browser
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
Browser private Module data.
struct Buffer last_dir
Browser: previous selected directory.
Private state data for the Browser.
struct BrowserState state
State containing list of files/dir/mailboxes.
struct BrowserEntryArray entry
Array of files / dirs / mailboxes.
Browser entry representing a folder/dir.
char * name
Name of file/dir/mailbox.
bool tagged
Folder is tagged.
struct NntpMboxData * nd
Extra NNTP data.
mode_t mode
File permissions.
Container for Accounts, Notifications.
◆ compose_attach_tag()
| static int compose_attach_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
Tag an attachment - Implements Menu::tag() -.
Definition at line 203 of file attach.c.
204{
209
212}
Data to fill the Compose Attach Window.
struct Menu * menu
Menu displaying the attachments.
struct AttachCtx * actx
Set of attachments.
◆ post_tag()
| static int post_tag |
( |
struct Menu * | menu, |
|
|
int | sel, |
|
|
int | act ) |
|
static |
Tag an email in the postpone menu - Implements Menu::tag() -.
Definition at line 179 of file dlg_postpone.c.
180{
184
187 {
188 for (
size_t i = 0; i < m->
msg_count; i++)
189 {
191 if (!e)
192 break;
194 }
197 }
198
201 if (!e)
203
205
207}
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_NO_ACTION
Valid function - no action performed.
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
@ MUTT_TAG
Tagged messages.
The envelope/body of an email.
int index
The absolute (unsorted) message number.
bool tagged
Email is tagged.
struct Mailbox * mailbox
Current Mailbox.
int msg_count
Total number of messages.
struct Email ** emails
Array of Emails.
struct ConfigSubset * sub
Inherited config items.
Data to pass to the Postpone Functions.
struct MailboxView * mailbox_view
Postponed Mailbox view.
struct Menu * menu
Postponed Menu.