old redundancy removed
This commit is contained in:
		@@ -11,11 +11,11 @@
 | 
				
			|||||||
ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit
 | 
					ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Get current number of new mail, then begin sync.
 | 
					# Get current number of new mail, then begin sync.
 | 
				
			||||||
ori=$(find ~/.mail -wholename '*/new/*' | grep /new/ | grep -vi "spam\|trash\|junk" | wc -l)
 | 
					ori=$(find ~/.mail -wholename '*/new/*' | grep -vi "spam\|trash\|junk" | wc -l)
 | 
				
			||||||
offlineimap -o
 | 
					offlineimap -o
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Output new new mail count.
 | 
					# Recount new mail.
 | 
				
			||||||
new=$(find ~/.mail -wholename '*/new/*' | grep /new/ | grep -vi "spam\|trash\|junk" | wc -l)
 | 
					new=$(find ~/.mail -wholename '*/new/*' | grep -vi "spam\|trash\|junk" | wc -l)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# If new mail has grown, play a notification.
 | 
					# If new mail has grown, play a notification.
 | 
				
			||||||
if [ "$new" -gt "$ori" ]; then
 | 
					if [ "$new" -gt "$ori" ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user