]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Send client's IP to mail process.
authorTimo Sirainen <tss@iki.fi>
Sun, 18 May 2003 16:26:26 +0000 (19:26 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 18 May 2003 16:26:26 +0000 (19:26 +0300)
--HG--
branch : HEAD

src/master/mail-process.c

index f4a0f193f2d598ab8bba1b24ff21a8b2f3f0a462..f8242e5acdad720c386206883577ab1a0aba61c1 100644 (file)
@@ -216,8 +216,10 @@ int create_mail_process(int socket, struct ip_addr *ip,
        env_put(t_strconcat("MAIL=", mail, NULL));
        env_put(t_strconcat("USER=", data + reply->virtual_user_idx, NULL));
 
+       host = net_ip2host(ip);
+       env_put(t_strconcat("IP=", host, NULL));
+
        if (set->verbose_proctitle) {
-               host = net_ip2host(ip);
                if (host == NULL)
                        host = "??";