Skip to content

Instantly share code, notes, and snippets.

View flatcap's full-sized avatar
🥾
Hiking in Scotland

Richard Russon flatcap

🥾
Hiking in Scotland
View GitHub Profile
@flatcap
flatcap / windows.md
Last active June 10, 2022 18:56
Window Events
@flatcap
flatcap / action.log
Last active May 27, 2021 13:15
NeoMutt test attachment viewing
We couldn’t find that file to show.
@flatcap
flatcap / n1.gv
Created May 31, 2021 00:24
notmuch functions that use the progress bar
digraph callgraph {
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
shape="Mrecord"
@flatcap
flatcap / data.txt
Last active January 20, 2024 19:11
neomutt windows and events
// Root Window
WT_ROOT none
WT_HELP_BAR struct HelpbarWindowData
WT_ALL_DIALOGS none
WT_MESSAGE struct MsgWinPrivateData
// Alias Query Dialog (simple)
WT_DLG_QUERY struct Menu
WT_MENU struct AliasMenuData
01 Burt Bacharach Apple
02 n Danny Devito +Banana
08 John Wayne Cherry
01 Burt Bacharach Apple
02 Danny Devito Banana
03 Kate Winslet └─>
04 Danny Devito ├─>
05 N Kate Winslet └─>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
// void qsort (void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
// void qsort_r(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *arg);
typedef int (*qsort_compar_t) (const void *a, const void *b);
typedef int (*qsort_r_compar_t)(const void *a, const void *b, void *arg);
@flatcap
flatcap / config.md
Created June 26, 2021 09:09
Config for NeoMutt 20210205-544-3952e7
Config Variable One-line Description
abort_backspace Hitting backspace against an empty prompt aborts the prompt
abort_key String representation of key to abort prompts
abort_noattach Abort sending the email if attachments are missing
abort_noattach_regex Regex to match text indicating attachments are expected
abort_nosubject Abort creating the email if subject is missing
abort_unmodified Abort the sending if the message hasn't
@flatcap
flatcap / qsort.md
Last active June 27, 2021 13:36
Functions that need upgrading to mutt_qsort_r()

Good

These sorting functions don't rely on global variables.

maildir_parse_dir()

  • Uses: ARRAY_SORT()
  • Sort:
    • maildir_cmp_inode()
@flatcap
flatcap / test.mbox
Last active June 30, 2021 11:52
Test case for $sort_thread
From [email protected] Thu Jun 1 01:01:01 2021
Date: Thu, 1 Jun 2021 01:01:01 +0000
From: Richard <[email protected]>
To: Armin <[email protected]>
Subject: Lemon
Message-ID: <[email protected]>
Status: RO
Lines: 20
some text
@flatcap
flatcap / sort.md
Last active July 2, 2021 13:43
Sort Transition

Sort Transition

Config (default):

  • $sort (date)
  • $sort_aux (date)
  • $use_threads (no)
use_thread sort sort_aux Threaded? 1st level 2nd+ levels Num Levels