folderfilter = lambda x: folderfilter(x)
remotepasseval = mailpasswd()
remotehost = mail.martlubbers.net
+#remotehost = email.martlubbers.net
remoteuser = mart@martlubbers.net
ssl = yes
+#sslcacertfile = /etc/ssl/certs/ca-certificates.crt
cert_fingerprint = d8f2613ee3017fe9eaec772cd07094342945f632
[mbnames]
if match:
return abs(datetime.date.today() -
datetime.date(int(match.group(1)), int(match.group(2)), 1)
- ).days <= 31*4
+ ).days <= 31*6
else:
return not x.startswith('archive')
--- /dev/null
+#!/bin/sh
+
+if [ $# = 0 ]
+then
+ echo "Usage: $0 /path/to/mailprog> <args> ..."
+ exit 2
+fi
+
+KEYWORDS='attach|bijlage|bijgevoegd'
+TMF="$(mktemp -t mutt_checkattach.XXXXX)"
+cat > "$TMF"
+
+## Define test for multipart message.
+multipart() {
+ grep -q '^Content-Type: multipart' "$TMF"
+}
+
+## Define test for keyword search.
+wordattach() {
+ grep -v '^>' "$TMF" | grep -E -i -q "$KEYWORDS"
+}
+
+if multipart || ! wordattach
+then
+ "$@" < "$TMF"
+ EXIT_STATUS=$?
+else
+ EXIT_STATUS=1
+fi
+
+# Delete the temporary file.
+rm -f "$TMF"
+
+# That's all folks.
+exit $EXIT_STATUS
source ~/.mutt/mailboxes
# Receiving, sending and searching
-set sendmail="msmtp -C /home/mrl/.config/msmtp/config"
+set sendmail="/home/mrl/.mutt/checkattach.sh msmtp -C /home/mrl/.config/msmtp/config"
set send_charset="us-ascii:utf-8"
macro index,pager $ "<shell-escape>offlineimap &<enter><sync-mailbox>" "Force refresh"
macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
-:set -v0 -Wall
+:set -v0
:set prompt "λ. "
+:def pf \str -> return $ ":! pointfree \"" ++ str ++ "\""
export PROMPT_COMMAND='history -a'
export TERMINAL=urxvtcd
-export EDITOR=vim
+export EDITOR="vim -p"
export TERM=screen
export BROWSER=firefox
export PAGER=less
export CLEAN_HOME=/opt/clean
export PATH=~/.local/bin:$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin
+export PATH=$PATH:/opt/texlive/2016/bin/x86_64-linux
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
-Subproject commit 734fde7f0b84ff3f670ab5772ed1b8b0c8c16770
+Subproject commit 5d9a0bc3877aea992292eeb6f318f4321fdef632
-Subproject commit 77ee6dd09d76a75cecac4e01a348786c589e9aca
+Subproject commit 3cedc48b1ef78666dc033b52ab31e21dbf47fc23
-Subproject commit 454090fe40bec3b62e6fd7faa91fd18750705bbb
+Subproject commit 5103285d4d59cc9d2d56e6e897b8efbbb460b774
-Subproject commit 70f19ba894e1966e4ce836e66569623c89e9c0b9
+Subproject commit 7da66c1b34dc2976a70c9393c7e0c9f47e129e89
-Subproject commit 62116f73b3bb753e7e512c262dd4bc0928b53360
+Subproject commit 99d318ed8da0d398de6e9c7f28a4aed2152e34a0
-Subproject commit 15adb395307f0d6ac99b445b42f631cc9184cbbf
+Subproject commit 7223609e73ef2b2e50fd57e5ae729cae0283ef31
nnoremap n nzzzv
nnoremap N Nzzzv
+" Fold settings
+set foldmethod=syntax
+set foldlevelstart=99
+
" Unbind arrow keys, who has them anyways on the keyboard...
for prefix in ['i', 'n', 'v']
for key in ['<UP>', '<DOWN>', '<LEFT>', '<RIGHT>']
include "%L"
+# Ligatures and special characters
+<Multi_key> <l> <s> : "ſ" U017F
+<Multi_key> <l> <z> : "ʒ" U0292
+<Multi_key> <a> <o> : "ꜵ" UA735
+<Multi_key> <A> <O> : "Ꜵ" UA734
+<Multi_key> <a> <u> : "ꜷ" UA737
+<Multi_key> <A> <U> : "Ꜷ" UA736
+<Multi_key> <a> <v> : "ꜷ" UA739
+<Multi_key> <A> <V> : "Ꜷ" UA738
+<Multi_key> <a> <y> : "ꜷ" UA73D
+<Multi_key> <A> <Y> : "Ꜷ" UA73C
+<Multi_key> <l> <o> <o> : "ꝏ" UA73F
+<Multi_key> <l> <O> <O> : "ꝏ" UA73E
+
# Lowercase greek letters.
<Multi_key> <g> <a> : "α" U03B1
<Multi_key> <g> <b> : "β" U03B2
<Multi_key> <percent> <C> : "Ⅽ" U216D
<Multi_key> <percent> <D> : "Ⅾ" U216E
<Multi_key> <percent> <M> : "Ⅿ" U216F
+
+# Swastika's
+<multi_key> <h> <a> <k> <e> <n> : "卍" U534D
+<multi_key> <h> <a> <k> <e> <i> : "卐" U5350
--- /dev/null
+#!/bin/sh
+DIR=~
+while [ ! -f "$DIR" ]; do
+ NEWDIR="$(ls -1 "$@" "$DIR" | dmenu -l 20)"
+ if [ -z "$NEWDIR" ]; then
+ exit;
+ fi
+ DIR="$(readlink -f "$DIR/$NEWDIR")"
+done
+echo "$DIR"
--- /dev/null
+#!/bin/sh
+gv "$(fsel)"
URL="scr/$(date +%F_%H-%M-%S).png"
import -window root $CROP png:- | \
ssh ygdrassil ssh martlubbers.net "cat \> public_html/$URL"
-echo "http://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {}
+echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}