atom feed27 messages in net.sourceforge.lists.courier-users[courier-users] Re: webmail non-relat...
FromSent OnAttachments
DennisJul 26, 2001 3:22 pm 
Tim HunterJul 26, 2001 3:58 pm 
DennisJul 26, 2001 5:24 pm 
Sam VarshavchikJul 26, 2001 5:50 pm 
DennisJul 28, 2001 3:58 am 
Sam VarshavchikJul 28, 2001 7:15 am 
Bill MichellJul 28, 2001 1:18 pm 
Graham LeggettJul 30, 2001 3:41 am 
Graham LeggettJul 30, 2001 3:45 am 
Bill MichellJul 30, 2001 7:36 am 
Graham LeggettJul 30, 2001 7:52 am 
DennisJul 30, 2001 8:18 am 
Bill MichellJul 30, 2001 8:39 am 
Roland SchneiderJul 30, 2001 8:43 am 
DennisJul 30, 2001 10:28 am 
Roland SchneiderJul 30, 2001 2:52 pm 
Sam VarshavchikJul 30, 2001 3:15 pm 
Sam VarshavchikJul 30, 2001 3:16 pm 
Graham LeggettJul 30, 2001 3:38 pm 
Graham LeggettJul 30, 2001 3:41 pm 
Sam VarshavchikJul 30, 2001 3:53 pm 
Sam VarshavchikJul 30, 2001 3:54 pm 
Graham LeggettJul 30, 2001 4:21 pm 
Graham LeggettJul 30, 2001 4:23 pm 
Sam VarshavchikJul 30, 2001 4:36 pm 
Bill MichellJul 30, 2001 4:39 pm 
DennisJul 30, 2001 5:06 pm 
Subject:[courier-users] Re: webmail non-relative urls
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jul 30, 2001 4:36:28 pm
List:net.sourceforge.lists.courier-users

Graham Leggett writes:

Sam Varshavchik wrote:

If there was nothing to fix, it would work, would it not?

And it works correctly.

It doesn't - but then it's acedemic,

If HTTP_HOST is set to example.com, and SCRIPT_NAME is set to /cgi-bin/sqwebmail, then sqwebmail will correctly generate its own URL as http://example.com/cgi-bin/sqwebmail, in accordance with CGI 1.1, whose official definition you can find at http://hoohoo.ncsa.uiuc.edu/cgi/env.html, which is considered to be the authoritative reference for CGI 1.1

Specifically, note the definition of SCRIPT_NAME:

SCRIPT_NAME - A virtual path to the script being executed, used for self-referencing URLs.

Therefore, if a CGI application receives a SCRIPT_NAME that does not really refer to the script itself, then this particular CGI implementation is BROKEN by definition. A similar statement can also be extrapolated for HTTP_HOST as well.

sqwebmail works correctly as a CGI application. You're just trying to make it work in a non-CGI compatible environment.