forked from extern/egroupware
GNU Patch #290.
This commit is contained in:
parent
720df8a650
commit
143cbc5d42
@ -43,12 +43,32 @@
|
||||
{
|
||||
$GLOBALS['phpgw_info']['server']['mail_port'] = '110';
|
||||
}
|
||||
elseif ($GLOBALS['phpgw_info']['server']['mail_server_type']=='imaps')
|
||||
{
|
||||
$GLOBALS['phpgw_info']['server']['mail_port'] = '993';
|
||||
}
|
||||
elseif ($GLOBALS['phpgw_info']['server']['mail_server_type']=='pop3s')
|
||||
{
|
||||
$GLOBALS['phpgw_info']['server']['mail_port'] = '995';
|
||||
}
|
||||
|
||||
if( $GLOBALS['phpgw_info']['server']['mail_server_type']=='pop3')
|
||||
{
|
||||
$mailauth = imap_open('{'.$GLOBALS['phpgw_info']['server']['mail_server'].'/pop3'
|
||||
.':'.$GLOBALS['phpgw_info']['server']['mail_port'].'}INBOX', $username , $passwd);
|
||||
}
|
||||
elseif ( $GLOBALS['phpgw_info']['server']['mail_server_type']=='imaps' )
|
||||
{
|
||||
// IMAPS support:
|
||||
$mailauth = imap_open('{'.$GLOBALS['phpgw_info']['server']['mail_server']."/ssl/novalidate-cert"
|
||||
.':993}INBOX', $username , $passwd);
|
||||
}
|
||||
elseif ( $GLOBALS['phpgw_info']['server']['mail_server_type']=='pop3s' )
|
||||
{
|
||||
// POP3S support:
|
||||
$mailauth = imap_open('{'.$GLOBALS['phpgw_info']['server']['mail_server']."/ssl/novalidate-cert"
|
||||
.':995}INBOX', $username , $passwd);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* assume imap */
|
||||
|
@ -1863,6 +1863,14 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
||||
{
|
||||
$prefs['email']['mail_port'] = '110';
|
||||
}
|
||||
elseif ($prefs['email']['mail_server_type']=='imaps')
|
||||
{
|
||||
$prefs['email']['mail_port'] = '993';
|
||||
}
|
||||
elseif ($prefs['email']['mail_server_type']=='pop3s')
|
||||
{
|
||||
$prefs['email']['mail_port'] = '995';
|
||||
}
|
||||
// This is going to be used to switch to the nntp class
|
||||
if (isset($GLOBALS['phpgw_info']['flags']['newsmode']) &&
|
||||
$GLOBALS['phpgw_info']['flags']['newsmode'])
|
||||
|
Loading…
Reference in New Issue
Block a user