On Thu, Feb 22, 2007 at 04:21:06PM +0000, TJ wrote:
> I'm having an issue with courier-imap on Fedora Core 5, where imaplogin
> isn't offering STARTTLS even though all the required environment
> variables are set by the scripts.
>
> To test it I'm launching it from a shell script that logs the
> environment just before calling imaplogin, which confirms the variables
> are set.
>
> Altering them changes the behaviour of imaplogin so I'm pretty sure it
> is seeing all the variables.
>
> The essence of the problem seems to be that
>
> courier-imap/imap/capability.c have_starttls()
>
> isn't seeing IMAP_STARTTLS=Y or COURIERTLS=/usr/bin/couriertls
>
> Any suggestions on how I can further debug this?
Stick some printf's in capability.c ?
Note also that starttls won't be enabled if COURIERTLS is not set, or points
to a non-existent file, or a file which is not executable.
int have_starttls()
{
const char *p;
if ((p=getenv("IMAP_STARTTLS")) == 0) return (0);
if (*p != 'y' && *p != 'Y') return (0);
p=getenv("COURIERTLS");
if (!p || !*p) return (0);
if (access(p, X_OK)) return (0);
return (1);
}
Brian.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap