24 lines
		
	
	
		
			579 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			579 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
# ALIASES=$(ksh -ic alias | grep ^mutt- | cut -d= -f1)
 | 
						|
# 
 | 
						|
# MAILBOX="imaps://mail.codevoid.de"
 | 
						|
# 
 | 
						|
# SEL=$(printf "$ALIASES" | $DMENU_CMD -p Mutt)
 | 
						|
# 
 | 
						|
# [ -z "$SEL" ] || texec $SEL
 | 
						|
 | 
						|
. $HOME/.bin/_config
 | 
						|
MAILBOXES=$(cd ~/.emails && find Mailboxes/*/ \
 | 
						|
            -mindepth 1 -maxdepth 1 -type d \
 | 
						|
                -not -path "*/tmp*" \
 | 
						|
                -not -path "*/cur*" \
 | 
						|
                -not -path "*/new*")
 | 
						|
 | 
						|
HOST="imaps://mail.codevoid.de"
 | 
						|
 | 
						|
 | 
						|
SEL=$(echo "$MAILBOXES" | $DMENU_CMD -p Mutt)
 | 
						|
 | 
						|
[ -z "$SEL" ] || texec "mutt -F $HOME/.mutt/rc-account-private -f $HOST/$SEL"
 |