07979ca17b8706b2c3fbfb744dad1d057d098aa3be0e2b325fe6e4024b310d29
3d66a23f23b70f1838369c8292cddc3a50e5ebb6ae3cb41a6c2ef8354a913814
615aa8482f524f9c66696ebd4bb5bb7836e2819c63313be2c067a4f9a0d546cc
+b92544617b44d0058ac3bbb01dad4fed076f1c926edce41d02bbd60e0a110cdd
alternates .+@tahi\.(vc|cc|kiwi\.nz|ventures)
alternates .+@grounded.ventures
alternates .+@portfolio\.tahi\.v(c|entures)
-alternates martin@keyp\.io
alternates m@rtin\.kiwi
-alternates squash(tc|news)@thorndonclub\.co\.nz
+alternates .+@(.+\.)?nymphenburg-squash\.de
#alternates .+@(rw|int|home)\.madduck\.net
+alternates .+@penny[au]ndmartin\.net
+alternates martin\.krafft@toni(\.immo|-kg\.de)
+alternates martin@squash-in-bayern\.de
# vim:ft=muttrc
return dt.astimezone().strftime(strf)
ret = []
- if start.tzinfo == end.tzinfo:
- ret.append(strftime(start, '%F %R'))
- else:
- ret.append(strftime(start, '%F %R %Z'))
+ try:
+ if start.tzinfo == end.tzinfo:
+ ret.append(strftime(start, '%F %R'))
- if start.date() == end.date():
- ret.append(strftime(end, '%T %Z'))
+ else:
+ ret.append(strftime(start, '%F %R %Z'))
- else:
- ret.append(strftime(end, '%F %R %Z'))
+ if start.date() == end.date():
+ ret.append(strftime(end, '%T %Z'))
+
+ else:
+ ret.append(strftime(end, '%F %R %Z'))
+
+ return ret
- return ret
+ except AttributeError:
+ return map(lambda d: d.strftime('%F'), (start, end))
def parse_ics_file(fp):
cal = Calendar.from_ical(fp.read())
macro index,pager <F10> "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> unset pipe_decode<enter><pipe-message>$my_confdir/viewmailattachments<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "view attachments in browser"
macro compose \ez "<enter-command> set my_editor=\$editor<enter><enter-command> set editor='mogrify -sample 1000x1000'<enter><edit-file><enter-command> set editor=\$my_editor<enter>" "Resize attached image to within 1000x1000"
+macro compose \eZ "<enter-command> set my_editor=\$editor<enter><enter-command> set editor='mogrify -sample 2500x2500'<enter><edit-file><enter-command> set editor=\$my_editor<enter>" "Resize attached image to within 1000x1000"
bind index,pager <left> sidebar-prev
bind index,pager \e<up> sidebar-prev
#!/bin/sh
+if [ -f $VARDIR/offlineimap/mailboxes ]; then
+ sed 1d $VARDIR/offlineimap/mailboxes
+fi
+
find "$1/" -type d -name cur -printf '%h\n' | \
sed -e "s,^$1/,=,g" -e "s,^$1\$,$2," | \
- egrep -v '^=(sp(ool|am)|discard|retrain(/(sp|h)am)?)$' | \
- sort | xargs echo mailboxes
+ egrep -v '^=(sp(ool|am)|discard|retrain(/(sp|h)am)?)$' | sort | \
+while read mailbox; do
+
+ ! grep -q "^mailboxes ${mailbox}\$" $VARDIR/offlineimap/mailboxes || continue
+ echo "mailboxes $mailbox"
+
+done
# Mutt mailcap for iCalendar previewing/khal import
text/calendar; ~/.config/mutt/icalparser; description=iCal details; copiousoutput; \
- print=khal import '%s'
+ print=sh -c "sensible-editor '%s' && khal import '%s'";
application/ics; ~/.config/mutt/icalparser; description=iCal details; copiousoutput; \
- print=khal import '%s'
+ print=sh -c "sensible-editor '%s' && khal import '%s'";
.block {
padding: 0 0.5em;
margin: 0;
+ font-style: italic;
border-left: 2px solid #eee;
}
.quote, blockquote {
DEFAULT_CSS += open(STYLESHEET).read()
SIGNATURE_HTML = \
- '<div class="signature"><span class="leader">-- </span>{sig}</div>'
+"""
+<div class="signature"><span class="leader">-- </span><br/>
+{sig}</div>
+"""
def _preprocess_signature(sig):
ext_disabled = [ 'tex_math_single_backslash',
'tex_math_dollars',
'smart',
- 'raw_html'
+ 'raw_html',
+ 'yaml_metadata_block'
]
enabled = '+'.join(ext_enabled)
body = _preprocess_markdown(body)
body = _identify_quotes_for_later(body)
html = _convert_with_pandoc(body, standalone=True, selfcontained=True,
- title="Body")
- html = html.replace('<title>Body</title>\n','')
+ title=None)
html = _reformat_quotes(html)
if sig:
sig = _preprocess_signature(sig)
sig = _preprocess_markdown(sig)
sig = _convert_with_pandoc(sig, standalone=False, selfcontained=False,
- title="Signature")
+ title=None)
sig = SIGNATURE_HTML.format(sig=sig)
eob = html.find('</body>')
html = f'{html[:eob]}{sig}\n{html[eob:]}'