[imp] (Default) Identities vs. 'from' hook

Stefan Ott sot@simple.ch
Thu, 20 Jun 2002 17:19:11 +0200

Hi there!

We're using IMP 3.1 on a mailserver for quite a lot of domains. In order to have usable from: addresses I created a function for $conf['hooks']['from'] which parsese sendmail's virtusertable. However, this seems to override (as stated in the config file) the user's identity. As some users might want to change their identity, this is rather unsuitable.

Is there a way to
1) only use $conf['hooks']['from'] when no identities have been set?
2) (uglier) check from within the hooked function whether a user has changed his identity?

Thanks & Regards
Simplicity GmbH                                                      
Stefan Ott, +41 79 2459 777    

ringstrasse 39            www.simple.ch        tel: +41 61 721 50 40
ch-4106 therwil           sot@simple.ch        fax: +41 61 721 50 41