add unison based mailsync
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								24e7054374
							
						
					
				
			
			
				commit
				
					
						d898f9d3f8
					
				
			
		
					 1 changed files with 13 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								mailsync
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								mailsync
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
synctime=~/.mailsync
 | 
			
		||||
 | 
			
		||||
date > $synctime
 | 
			
		||||
unison -batch \
 | 
			
		||||
    -ignore 'Name .git' \
 | 
			
		||||
    -ignore 'Name .notmuch' \
 | 
			
		||||
    -ignore 'Name procmail.log' \
 | 
			
		||||
    ~/Maildir ssh://nico-vm.schottelius.org/Maildir
 | 
			
		||||
date >> $synctime
 | 
			
		||||
 | 
			
		||||
cat "$synctime"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue