multiword mailbox fix
This commit is contained in:
		| @@ -9,11 +9,11 @@ fi | |||||||
|  |  | ||||||
| muttdir="$HOME/.config/mutt/" | muttdir="$HOME/.config/mutt/" | ||||||
|  |  | ||||||
| createMailboxes() { rm -f "$muttdir"autoconf/log | createMailboxes() { rm -f /tmp/log /tmp/lognew | ||||||
| 	offlineimap --info -a $1 2&> "$muttdir"autoconf/log | 	offlineimap --info -a $1 2&> /tmp/log | ||||||
| 	for box in $(sed -n '/^Folderlist/,/^Folderlist/p' "$muttdir"autoconf/log | | 	sed -n '/^Folderlist/,/^Folderlist/p' /tmp/log | | ||||||
| 		grep "^ " | awk '{print $1}' | sed -e 's/\//./g') | 		grep "^ " | sed -e "s/\//./g;s/(.*//g;s/^ //g" > /tmp/lognew | ||||||
| 	do mkdir -p $HOME/.mail/$1/$box; done ;} | 	while read box; do mkdir -p "$HOME/.mail/$1/$box"; done </tmp/lognew ;} | ||||||
|  |  | ||||||
| chooseSync() { (crontab -l && testSync) || dialog --msgbox "No cronjob manager detected. Please install one and return to enable automatic mailsyncing" 10 60 ;} | chooseSync() { (crontab -l && testSync) || dialog --msgbox "No cronjob manager detected. Please install one and return to enable automatic mailsyncing" 10 60 ;} | ||||||
| testSync() { (crontab -l | grep .config/mutt/etc/mailsync && removeSync) || addSync ;} | testSync() { (crontab -l | grep .config/mutt/etc/mailsync && removeSync) || addSync ;} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user