[Dovecot] Request for variable unique to each server?

Timo Sirainen
Sat, 10 Nov 2007 15:30:08 -0000

On Sat, 2007-11-10 at 09:12 -0500, Adam McDougall wrote:
> Is there a variable that holds the server hostname or something else unique
per server,
> or could one be added, or could someone point me at the code?  Thanks.

Well, the code would in two places:

src/auth/auth-request.c auth_request_get_var_expand_table()
src/master/mail-process.c get_var_expand_table()

You could add a new variable that uses my_hostname variable from
hostpid.h. I'm not sure if I should add this to standard variables.
These one letter variables are beginning to run out. Maybe v2.0 should
have longer $variable names..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20071110/4bb19ffa/attachment-0002.bin>