[Dovecot] Hooking on renaming actions
            
            
            
                28 Oct
                
                    2004
                
            
            
                28 Oct
                
                '04
                
            
            
            
        
    
                1:25 a.m.
            
        Hello,
A short question:
is it possible to intercept user's action whe he renames a folder? My goal is to adjust shell-scripts or procmailrc to the new name.
A
--
            
            
            
                1 Nov
                
            
            
                1 Nov
                
            
            
            
        
    
                4:20 p.m.
            
        On 28.10.2004, at 01:25, Adam Pordzik wrote:
is it possible to intercept user's action whe he renames a folder? My goal is to adjust shell-scripts or procmailrc to the new name.
It should be possible by creating a plugin to do so, but there are no examples yet so you'd have to look into that yourself.. Probably works if you just create your own RENAME-handler, copy&pasted from the src/imap/cmd-rename.c but with an extra system() call.
http://dovecot.org/patches/namespace.c has an example how to hook commands.
        7669
        
      
          Age (days ago)
        
      
        7674
        
    
          Last active (days ago)
        
        
        
        1 comments
    
    
        
        2 participants
    
    
    
    
    
    
    
    
    participants (2)
- 
                
                Adam Pordzik
- 
                
                Timo Sirainen