Skip to content

Instantly share code, notes, and snippets.

@orymate
Created February 27, 2011 09:06
Show Gist options
  • Save orymate/846035 to your computer and use it in GitHub Desktop.
Save orymate/846035 to your computer and use it in GitHub Desktop.
Mutt new mail indication in gnu screen
muttrc:
set status_format="/home/maat/run/bin/mutt_newmail '%b' '%n' '-%r-ubu: %f [Msgs:%?M?%M/?%m%? n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(% P)---'"|
/home/maat/run/bin/mutt_newmail:
#!/bin/bash
if [ "${1:-0}${2:-0}" = 00 ]
then
printf "\033kposta\033\\" > /dev/tty
else
printf "\033kPOSTA!\033\\" > /dev/tty
fi
echo "$3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment