--- tla-1.2pre1-orig/src/tla/libarch/pfs-dav.c	2004-01-14 00:42:09.000000000 +0100
+++ tla-1.2pre1/src/tla/libarch/pfs-dav.c	2004-01-22 14:55:38.352364800 +0100
@@ -263,6 +263,25 @@
 
           ne_session_proxy (answer->sess, proxy_path, proxy_port_num);
         }
+
+      if (proxy)
+	{
+	  t_uchar * proxy_user;
+	  t_uchar * proxy_passwd;
+	  proxy_user = getenv("proxy_user");
+	  proxy_passwd = getenv("proxy_passwd");
+	  if ((proxy_passwd != NULL) && (proxy_user != NULL))
+	    {
+	      struct authinfo * proxy_auth = 0;
+	      proxy_auth = lim_malloc (0, sizeof (struct authinfo));
+	      if (proxy_auth)
+		{
+		  proxy_auth->username = str_save(0, proxy_user);
+		  proxy_auth->password = str_save(0, proxy_passwd);
+		  ne_set_proxy_auth(answer->sess, dav_client_auth, proxy_auth);
+		}
+	    }
+	}
     }
 
   if (root_path)
