Skip to content

Instantly share code, notes, and snippets.

View flatcap's full-sized avatar

Richard Russon flatcap

View GitHub Profile
@flatcap
flatcap / mx.gv
Created July 28, 2021 09:51
Schematic of the MX layer
digraph callgraph {
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
shape="box"
@flatcap
flatcap / results1.txt
Last active July 20, 2021 00:10
test for use_threads
Anne 12:01 cover letter for thread 1
Anne 12:02 part 1 of thread 1
Anne 12:03 part 2 of thread 1
Anne 12:04 part 3 of thread 1
Barbara 12:05 thread 2
Claire 12:06 thread 3
Diane 12:07 re: part 2 of thread 1
Erica 12:08 re: thread 2
Anne 12:01 cover letter for thread 1
@flatcap
flatcap / enum.c
Last active July 10, 2021 13:13
sort, use_threads, enum
//-------------------------------------------------------------------
// SORT CODE
enum UseThreads
{
UT_FLAT,
UT_THREADS,
UT_REVERSE,
UT_UNSET = ENUM_UNSET,
};
@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
@flatcap
flatcap / test.mbox
Last active June 30, 2021 11:52
Test case for $sort_thread
From rich@banana.com Thu Jun 1 01:01:01 2021
Date: Thu, 1 Jun 2021 01:01:01 +0000
From: Richard <rich@banana.com>
To: Armin <web-20210505@hawthorn.com>
Subject: Lemon
Message-ID: <20210505134209.5264ujirb5maa7lj@laptop.banana.com>
Status: RO
Lines: 20
some text
@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 / 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
#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);
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 └─>
@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