Before | After |
---|---|
MUTT_BUFFY | MUTT_MAILBOX |
MUTT_BUFFY_CHECK_FORCE | MUTT_MAILBOX_CHECK_FORCE |
MUTT_BUFFY_CHECK_FORCE_STATS | MUTT_MAILBOX_CHECK_FORCE_STATS |
MUTT_SEL_BUFFY | MUTT_SEL_MAILBOX |
OP_BUFFY_LIST | OP_BUFFY_LIST |
OP_EDITOR_BUFFY_CYCLE | OP_EDITOR_BUFFY_CYCLE |
buffy_check | mailbox_check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unset record | |
set postpone = no | |
set editor="lorem-ipsum-generator -p1 | fmt >> %s" | |
macro index,pager <F1> "[email protected]<enter>test<enter>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put neomutt.desktop in /usr/share/applications/ | |
Put mimeapps.list in ~/.local/share/applications/mimeapps.list | |
Check association with: xdg-mime query default 'x-scheme-handler/mailto' | |
--- | |
# set the association by command | |
xdg-mime default neomutt.desktop x-scheme-handler/mailto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias m='/usr/bin/mutt -n -F test.rc -f test.mbox' | |
alias n='/usr/bin/neomutt -n -F test.rc -f test.mbox' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* We want POSIX.1-2008 + XSI, i.e. SuSv4, features */ | |
#define _XOPEN_SOURCE 700 | |
/* Added on 2017-06-25: | |
If the C library can support 64-bit file sizes | |
and offsets, using the standard names, | |
these defines tell the C library to do so. */ | |
#define _LARGEFILE64_SOURCE | |
#define _FILE_OFFSET_BITS 64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OK, I've got it (I'm not sure I entirely understand, but...) I have individually coloured tags | |
it's all to do with the tag transforms -- it's a little complicated... | |
have a look at the 'tag-transforms' and 'tag-formats' in the config file: https://www.neomutt.org/feature/custom-tags#neomuttrc | |
imagine you have emails notmuch-tagged/labelled with 'inbox', 'invites', 'replied' | |
this command allows you to abbreviate/iconise the tags: tag-transforms inbox i invites CAL replied ↻ | |
this command allows you to create expandos (%-things) for *individual* tags: tag-formats inbox GI invites Gi replied GR | |
you can now use %GI %Gi %GR in your index_format string | |
finally, you can colour *these* expandos using: color index_tag, e.g. | |
color index_tag red default inbox | |
color index_tag cyan default invites |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ | |
struct Context *c; | |
@@ | |
- c->tagged | |
+ c->nr_tagged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "mutt/queue.h" | |
struct Apple | |
{ | |
int payload; | |
}; | |
struct AppleNode | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <libgen.h> | |
#define mutt_array_size(x) (sizeof(x) / sizeof((x)[0])) | |
void *mutt_mem_malloc(size_t size) | |
{ | |
void *p = NULL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *mutt_file_dirname(const char *path) | |
{ | |
char *copy = mutt_str_strdup(path); | |
char *dir = dirname(copy); | |
if (dir != copy) | |
{ | |
FREE(©); | |
dir = strdup(dir); | |
} | |
return dir; |