#include "config.h"
#include <string.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "mview.h"
#include "imap/lib.h"
#include "ncrypt/lib.h"
#include "pattern/lib.h"
#include "mutt_header.h"
#include "mutt_thread.h"
#include "mx.h"
#include "score.h"
#include "sort.h"
Go to the source code of this file.
Functions | |
void | mview_free (struct MailboxView **ptr) |
Free a MailboxView. | |
struct MailboxView * | mview_new (struct Mailbox *m, struct Notify *parent) |
Create a new MailboxView. | |
static void | mview_clean (struct MailboxView *mv) |
Release memory and initialize a MailboxView. | |
void | mview_update (struct MailboxView *mv) |
Update the MailboxView's message counts. | |
static void | update_tables (struct MailboxView *mv) |
Update a MailboxView's internal tables. | |
int | mview_mailbox_observer (struct NotifyCallback *nc) |
Notification that a Mailbox has changed - Implements observer_t -. | |
bool | message_is_tagged (struct Email *e) |
Is a message in the index tagged (and within limit) | |
int | ea_add_tagged (struct EmailArray *ea, struct MailboxView *mv, struct Email *e, bool use_tagged) |
Get an array of the tagged Emails. | |
struct Email * | mutt_get_virt_email (struct Mailbox *m, int vnum) |
Get a virtual Email. | |
bool | mview_has_limit (const struct MailboxView *mv) |
Is a limit active? | |
struct Mailbox * | mview_mailbox (struct MailboxView *mv) |
Wrapper to get the mailbox in a MailboxView, or NULL. | |
static struct MuttThread * | top_of_thread (struct Email *e) |
Find the first email in the current thread. | |
bool | mutt_limit_current_thread (struct MailboxView *mv, struct Email *e) |
Limit the email view to the current thread. | |
View of a Mailbox.
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 mview.c.
void mview_free | ( | struct MailboxView ** | ptr | ) |
Free a MailboxView.
[out] | ptr | MailboxView to free |
Definition at line 50 of file mview.c.
struct MailboxView * mview_new | ( | struct Mailbox * | m, |
struct Notify * | parent | ||
) |
Create a new MailboxView.
m | Mailbox |
parent | Notification parent |
ptr | New MailboxView |
Definition at line 91 of file mview.c.
|
static |
Release memory and initialize a MailboxView.
mv | MailboxView to cleanup |
Definition at line 119 of file mview.c.
void mview_update | ( | struct MailboxView * | mv | ) |
Update the MailboxView's message counts.
mv | Mailbox View |
this routine is called to update the counts in the MailboxView structure
Definition at line 139 of file mview.c.
|
static |
Update a MailboxView's internal tables.
mv | Mailbox |
Definition at line 235 of file mview.c.
bool message_is_tagged | ( | struct Email * | e | ) |
int ea_add_tagged | ( | struct EmailArray * | ea, |
struct MailboxView * | mv, | ||
struct Email * | e, | ||
bool | use_tagged | ||
) |
Get an array of the tagged Emails.
ea | Empty EmailArray to populate |
mv | Current Mailbox |
e | Current Email |
use_tagged | Use tagged Emails |
num | Number of selected emails |
-1 | Error |
Definition at line 378 of file mview.c.
Get a virtual Email.
m | Mailbox |
vnum | Virtual index number |
This safely gets the result of the following:
mailbox->emails[mailbox->v2r[vnum]]
Definition at line 418 of file mview.c.
bool mview_has_limit | ( | const struct MailboxView * | mv | ) |
Is a limit active?
mv | MailboxView |
true | A limit is active |
false | No limit is active |
Definition at line 439 of file mview.c.
struct Mailbox * mview_mailbox | ( | struct MailboxView * | mv | ) |
Wrapper to get the mailbox in a MailboxView, or NULL.
mv | MailboxView |
ptr | The mailbox in the MailboxView |
NULL | MailboxView is NULL or doesn't have a mailbox |
Definition at line 450 of file mview.c.
|
static |
bool mutt_limit_current_thread | ( | struct MailboxView * | mv, |
struct Email * | e | ||
) |
Limit the email view to the current thread.
true | Success |
false | Failure |
Definition at line 481 of file mview.c.