mirror of https://github.com/Flinner/dots.git
				
				
				
			feat: better mail searching
This commit is contained in:
		
							parent
							
								
									7b035cf185
								
							
						
					
					
						commit
						d00fef3473
					
				| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
[module/thunderbird]
 | 
					[module/thunderbird]
 | 
				
			||||||
type = custom/script
 | 
					type = custom/script
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\(\^A2=(\w+)\).*/\1/' | xargs --replace=__ printf '%d\n' '0x__'" \; | grep -o '^[0-9]' | paste -sd+ | bc
 | 
					exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\\(\\^A2=(\\w+)\\).*/\\1/' | xargs --replace=__ printf '%d\\n' '0x__'" \\; | grep -o '^[0-9]' | paste -sd+ | bc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interval = 5
 | 
					interval = 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,7 +33,7 @@ format-prefix-foreground = ${color.yellow}
 | 
				
			||||||
[module/mu4e]
 | 
					[module/mu4e]
 | 
				
			||||||
type = custom/script
 | 
					type = custom/script
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec =  ( ls -1 ~/.mail/*/*/new/* 2> /dev/null | wc -l ) || echo 0
 | 
					exec =  find ~/.mail -path '*/*/new/*' -type f | wc -l
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interval = 5
 | 
					interval = 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue