-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdyk.txt
179 lines (136 loc) · 6.09 KB
/
dyk.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
Did You Know?
frequent simple neomutt tips
post to user-ml
digest to website (then link to twitter)
ctrl-g
addr-book comments
need repo, issues, project?
easy task python
neo-bot (rename repo)
modernise neo-bot
dyk036 -> title + url
/dyk/001 (1000)
date in header? YES
or sort by number? YES
repo for issues/ideas
do we need a repo? no files?
use website issues
add issue templates
section on website + reverse date table
link to latest on home page
set variables from variables: status_format="... ${from} ..."
subject editing [devel] etc
with examples for our two mailing lists
text vs gui
mailcap, copiousoutput, auto_view
associate mailto: link with neomutt
see https://gist.github.com/flatcap/a1c94399c40893db39d641fb106a0dc2
contents of ~/desktop
autocmd BufRead /tmp/mutt/neomutt-* setl syntax=mail ts=8 sw=2 et
jump to first blank line (after headers)
# vim: syntax=neomuttrc
alias add # comments
:<space>command (won't show up in history)
$index_format dates
there are three formats:
${...} time email was sent in senders timezone
$[...] time email was sent in *your* timezone
$(...) time email was received in *your* timezone
https://neomutt.org/guide/reference.html#index-format
the ... is strftime() compatible letters ("man strftime" in a terminal will document them)
imap compression
gdb ignore mutt/*.[ch]
-> dev ml?
post conceal vim to dev/prog-tips page
<grummund>
Can a folder hook supply the pathname of the mail folder to a shell command it calls out to?
something like... folder-hook lists/* 'set from = `script.sh $dir`@example.com'
<kevin8t8>
you can set an environment variable that you reference from the script.
folder-hook . 'set visual=^'
folder-hook . 'setenv MYCURFOLDER $visual'
this assumes you aren't using $visual for anything, and uses the folder
shortcut '^' to get the current folder with path variable expansion.
then assigns it to the envvar of your choice.
msg ranges, relative, ^, $, .
folder-hook =trash 'push <delete-pattern>~d>30d<enter>'
about index_format padding: `... %s%> (%c)` vs `... %s%* (%c)`
which of subject vs ending (%c) gets priority in a low-space situation
and generally min/max widths and left/right justification
autodiscovery of maildir
mailboxes `find ~/mail -type d -name cur -printf "%h\n"`
set index_format="%4C %-12@date@ %-15.15F %Z (%4c) %s"
index-format-hook date "~d<1H" "just now"
index-format-hook date "~d<2H" "an hour ago"
index-format-hook date "~d<4H" "few hours ago"
index-format-hook date "~d<1d" "earlier today"
index-format-hook date "~d<2d" "yesterday"
index-format-hook date "~d<7d" "this week"
index-format-hook date "~d<1m" "%[%a %d]"
index-format-hook date "~d<1y" "%[%b %d]"
index-format-hook date "~A" "%[%m/%y]"
DYK -> github "announce" discussion!
promote gist to DYK
https://gist.github.com/flatcap/bd9105208b016ae39ed253f95d94e808
for the perfect example, you'd wrap the "on" case with <tag-prefix-cond> ... <end-cond>, to be a no-op when there are zero tagged files
add comments
space before command to prevent history (separate DYK)
add?
# abort_noattach = yes
# set attach_keyword = "\\<(attach|attached|attachments?)\\>"
# set attach_keyword = "\\<(bijvoegen|bijgevoegd|bijlage|bijlagen)\\>"
# set attach_keyword = "\\<(anhängen|angehängt|anhang|anhänge|hängt an)\\>"
# set attach_keyword = "\\<(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons)\\>"
discussion icon :bulb:
sending a file "apple.txt"
# if you want the file as the body of the email
cat apple.txt | neomutt -s "new file" [email protected]
# if you want message "hello" and apple.txt as an attachment
echo hello | neomutt -s "new file" [email protected] -a apple.txt
hide "Autoview" lines
color attach_headers black black "\\[--\\ Autoview.*\\]$"
set display_filter = "grep -v '\\\[-- Autoview using'"
set display_filter = 'grep -v "\\[-- Autoview using"'
https://github.com/neomutt/neomutt/issues/3243
macro index,pager <f5> '<enter-command>set pager_index_lines=`bc <<< "10 - $pager_index_lines"`<enter>'
macro pager,index I ':set pager_index_lines=`dc -e "10 $pager_index_lines -p"`<enter>'
add leading space to prevent history
fake/external new mail command
zsw: if using linux, there's incrond for firing off a command/script when a dir is touched
position cursor in input field, e.g.
macro index <F5> '<limit>-I ""<left>'
:bind index p end-cond
# make 'p' do nothing, silently, on the index
RSI prevention, NeoMutt style:
# Alt-j inserts =
macro editor \ej =
post to users ml
alberand | Hey all! Does anyone know if there is an easy way to change received emails? What I want to do is - I get a lot Jira emails and they contains
| a bunch of useless info, I want to add bash script on those emails to cut this off
flatcap | yes, you could use $display_filter
flatcap | :set display_filter="sed '/^On/,/^$/d'"
flatcap | that'd kill everything between a line beginning "On" and the first blank line after it
flatcap | you could use a couple of `folder-hook`s to make it only apply on certain folders
#mutt
It would be nice to have the "color status" changed for the different mail boxes. Can this be achieved?
create folder-hook example
howto re-send automatic emails / template
see irc discussion on 2023-11-03
example conditional date for "today", "this week", "this month"
set index_format = "%<[d?%[Today %R]&%[%F %R]>"
disable 'p' (print) by binding the key to nop or endcond
check/test
subjectrx
subject lines like "Re: AW: WG: Fwd: AW: Re: AG Live Scoring" are common. Can
subjectrx '((aw|fwd|re|wg): )*' 're: %R'
strips multiple re: aw: etc
reducing your example to just "re: AG Live Scoring"
(the re: being inserted by choice)
---
subjectrx '\[neomutt/neomutt\] Run failed: (.*) (\(\x+\))' '✅ [%2] %1'
subjectrx '\[neomutt/neomutt\] Run failed: (.*) \(([0-9a-fA-F]+)\)' '✅ [%2] %1'
subjectrx '\[neomutt/neomutt\] Run failed: (.*) \(([0-9a-fA-F]+)\)' '❌ [%2] %1'
subjectrx '\[neomutt/neomutt\] (.*) \(PR #([0-9]+)\)' '🔀#%2 %1'
use toggle on numbers
e.g macro to toggle full-screen mode
:toggle sidebar_visible pager_index_lines