NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
expando.c File Reference

Browser Expando definitions. More...

#include "config.h"
#include <grp.h>
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "expando.h"
#include "lib.h"
#include "expando/lib.h"
#include "muttlib.h"
+ Include dependency graph for expando.c:

Go to the source code of this file.

Functions

static void folder_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified - Implements get_string_t -.
 
static long folder_date_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Last modified - Implements get_number_t -.
 
static void folder_date_format (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified ($date_format) - Implements get_string_t -.
 
static long folder_date_format_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Last modified ($date_format) - Implements get_number_t -.
 
static void folder_date_strf (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified (strftime) - Implements get_string_t -.
 
static long folder_date_strf_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Last modified (strftime) - Implements get_number_t -.
 
static void folder_description (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Description - Implements get_string_t -.
 
static void folder_filename (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Filename - Implements get_string_t -.
 
static void folder_file_group (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Group name - Implements get_string_t -.
 
static void folder_file_mode (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: File permissions - Implements get_string_t -.
 
static void folder_file_owner (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Owner name - Implements get_string_t -.
 
static void folder_file_size (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Size in bytes - Implements get_string_t -.
 
static long folder_file_size_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Size in bytes - Implements get_number_t -.
 
static void folder_hard_links (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Hard links - Implements get_string_t -.
 
static long folder_hard_links_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Hard links - Implements get_number_t -.
 
static void folder_message_count (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Number of messages - Implements get_string_t -.
 
static long folder_message_count_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Number of messages - Implements get_number_t -.
 
static void folder_new_mail (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: New mail flag - Implements get_string_t -.
 
static long folder_new_mail_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: New mail flag - Implements get_number_t -.
 
static long folder_notify_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Alert for new mail - Implements get_number_t -.
 
static long folder_number_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Index number - Implements get_number_t -.
 
static long folder_poll_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Poll for new mail - Implements get_number_t -.
 
static void folder_tagged (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Is Tagged - Implements get_string_t -.
 
static long folder_tagged_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Is Tagged - Implements get_number_t -.
 
static void folder_unread_count (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Number of unread messages - Implements get_string_t -.
 
static long folder_unread_count_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Browser: Number of unread messages - Implements get_number_t -.
 
static void global_padding_space (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Fixed whitespace - Implements get_string_t -.
 

Variables

const struct ExpandoRenderCallback FolderRenderCallbacks []
 Callbacks for Browser Expandos.
 

Detailed Description

Browser Expando definitions.

Authors
  • Richard Russon

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 expando.c.

Variable Documentation

◆ FolderRenderCallbacks

const struct ExpandoRenderCallback FolderRenderCallbacks[]
Initial value:
= {
{ -1, -1, NULL, NULL },
}
@ ED_FOL_POLL
FolderFile.poll_new_mail.
Definition: lib.h:135
@ ED_FOL_NOTIFY
FolderFile.notify_user.
Definition: lib.h:133
@ ED_FOL_FILE_OWNER
FolderFile.uid.
Definition: lib.h:124
@ ED_FOL_FILE_GROUP
FolderFile.gid.
Definition: lib.h:122
@ ED_FOL_FILENAME
FolderFile.name.
Definition: lib.h:121
@ ED_FOL_DATE_FORMAT
FolderFile.mtime.
Definition: lib.h:118
@ ED_FOL_DATE_STRF
FolderFile.mtime.
Definition: lib.h:119
@ ED_FOL_UNREAD_COUNT
FolderFile.msg_unread.
Definition: lib.h:137
@ ED_FOL_FILE_MODE
FolderFile.move.
Definition: lib.h:123
@ ED_FOL_NEW_MAIL
FolderFile.has_new_mail.
Definition: lib.h:132
@ ED_FOL_FILE_SIZE
FolderFile.size.
Definition: lib.h:125
@ ED_FOL_HARD_LINKS
FolderFile.nlink.
Definition: lib.h:128
@ ED_FOL_DATE
FolderFile.mtime.
Definition: lib.h:117
@ ED_FOL_TAGGED
FolderFile.tagged.
Definition: lib.h:136
@ ED_FOL_NUMBER
Folder.num.
Definition: lib.h:134
@ ED_FOL_DESCRIPTION
FolderFile.desc, FolderFile.name.
Definition: lib.h:120
@ ED_FOL_MESSAGE_COUNT
FolderFile.msg_count.
Definition: lib.h:129
@ ED_FOLDER
Folder ED_FOL_ ExpandoDataFolder.
Definition: domain.h:43
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition: domain.h:44
static long folder_date_strf_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Last modified (strftime) - Implements get_number_t -.
Definition: expando.c:160
static long folder_message_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Number of messages - Implements get_number_t -.
Definition: expando.c:356
static long folder_file_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Size in bytes - Implements get_number_t -.
Definition: expando.c:308
static long folder_hard_links_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Hard links - Implements get_number_t -.
Definition: expando.c:330
static long folder_number_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Index number - Implements get_number_t -.
Definition: expando.c:402
static long folder_new_mail_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: New mail flag - Implements get_number_t -.
Definition: expando.c:383
static long folder_tagged_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Is Tagged - Implements get_number_t -.
Definition: expando.c:435
static long folder_notify_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Alert for new mail - Implements get_number_t -.
Definition: expando.c:392
static long folder_poll_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Poll for new mail - Implements get_number_t -.
Definition: expando.c:412
static long folder_date_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Last modified - Implements get_number_t -.
Definition: expando.c:69
static long folder_unread_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Number of unread messages - Implements get_number_t -.
Definition: expando.c:457
static long folder_date_format_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Browser: Last modified ($date_format) - Implements get_number_t -.
Definition: expando.c:114
static void folder_new_mail(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: New mail flag - Implements get_string_t -.
Definition: expando.c:370
static void folder_tagged(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Is Tagged - Implements get_string_t -.
Definition: expando.c:422
static void folder_description(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Description - Implements get_string_t -.
Definition: expando.c:173
static void folder_date_strf(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Last modified (strftime) - Implements get_string_t -.
Definition: expando.c:126
static void folder_date(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Last modified - Implements get_string_t -.
Definition: expando.c:47
static void folder_file_mode(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: File permissions - Implements get_string_t -.
Definition: expando.c:238
static void folder_date_format(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Last modified ($date_format) - Implements get_string_t -.
Definition: expando.c:81
static void folder_file_group(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Group name - Implements get_string_t -.
Definition: expando.c:217
static void folder_file_size(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Size in bytes - Implements get_string_t -.
Definition: expando.c:294
static void global_padding_space(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Fixed whitespace - Implements get_string_t -.
Definition: expando.c:471
static void folder_filename(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Filename - Implements get_string_t -.
Definition: expando.c:197
static void folder_hard_links(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Hard links - Implements get_string_t -.
Definition: expando.c:317
static void folder_file_owner(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Owner name - Implements get_string_t -.
Definition: expando.c:273
static void folder_message_count(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Number of messages - Implements get_string_t -.
Definition: expando.c:343
static void folder_unread_count(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Browser: Number of unread messages - Implements get_string_t -.
Definition: expando.c:444
@ ED_GLO_PADDING_SPACE
Space Padding.
Definition: uid.h:41

Callbacks for Browser Expandos.

See also
FolderFormatDef, ExpandoDataFolder, ExpandoDataGlobal

Definition at line 482 of file expando.c.