13 Nov
                
                    2007
                
            
            
                13 Nov
                
                '07
                
            
            
            
        
    
                1:41 p.m.
            
        "BH" == Benjamin R Haskell <dovecot@benizi.com> writes:
BH> Since you're not doing anything protocol-specific (like echo "* OK
BH> [ALERT] Blah"), you could use the symlink trick to only require
BH> one script:
BH> ln -s /path/script /path/imap
BH> ln -s /path/script /path/pop3
BH> Then replace the exec with:
BH> exec /usr/libexec/dovecot/`basename $0`I was thinking about the "-l imap" in the sessreg invocation but clearly
one could use basename $0 to handle that too.  My preference is to avoid
scripts whose behaviour is determined by the name by which they were
invoked.