What follows is a cross-post of a message I sent to the users list lastnight.
I realized this morning that I'd have a better chance of having experienced PHP
coders read it (besides Ryo) if I posted it here, instead.
I'd appreciate any help I get.
------------- Begin Forwarded Message -------------
I'm trying to modify IlohaMail 0.8.12 to be easier to use with
mailservers that host more than one domain. The attached diff file
shows where I am right now.
Here's the behaviour I'm looking for:
A user with the email address sample@... logs into IlohaMail with
the following credentials:
On the IMAP server (mail.test1.com) the user's id is actually
Right now, I'm using auto_append to make the appropriate change to the
userid, but when the user tries to compose an email, the Sender address
is automatically set to sample.test1.com@... - most
undesirable. I understand that this behaviour can be overridden by
using the identites preferences, but I don't want to have to do that.
I want to use $init_from_address to rewrite the address as
short_userid@... I've modified VDOMAIN_DETECT to allow for storing
domain names in addition to mailhosts, and I've added code for
additional wildcards in $init_from_address.
Unfortunately, my two new variables ($userid, $domain) don't be sticking
around to be inserted into the from address. Can someone give me some
pointers on how to make these variables global and persist?
I've got plenty of C and perl under my belt, but I'm a total noob with PHP.
------------- End Forwarded Message -------------