Changeset 7631 for trunk/zpush/config.php
- Timestamp:
- 12/10/12 10:17:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zpush/config.php
r7629 r7631 176 176 177 177 178 // ************************179 // BackendIMAP settings180 // ************************181 // Defines the server to which we want to connect182 define('IMAP_SERVER', 'localhost');183 // connecting to default port (143)184 define('IMAP_PORT', 143);185 // best cross-platform compatibility (see http://php.net/imap_open for options)186 define('IMAP_OPTIONS', '/notls/norsh');187 // overwrite the "from" header if it isn't set when sending emails188 // options: 'username' - the username will be set (usefull if your login is equal to your emailaddress)189 // 'domain' - the value of the "domain" field is used190 // '@mydomain.com' - the username is used and the given string will be appended191 define('IMAP_DEFAULTFROM', '');192 // copy outgoing mail to this folder. If not set z-push will try the default folders193 define('IMAP_SENTFOLDER', 'INBOX/Sent');194 // forward messages inline (default false - as attachment)195 define('IMAP_INLINE_FORWARD', false);196 // use imap_mail() to send emails (default) - if false mail() is used197 define('IMAP_USE_IMAPMAIL', true);198 199 178 200 179 // ************************ … … 300 279 301 280 $GLOBALS['connections']['db'] = pg_connect( $rs ); 281 282 283 $rs = pg_query( $GLOBALS['connections']['db'], 'SELECT * FROM phpgw_emailadmin' ); 284 $row = pg_fetch_assoc( $rs ); 285 286 // ************************ 287 // BackendIMAP settings 288 // ************************ 289 // Defines the server to which we want to connect 290 define('IMAP_SERVER', $row['imapserver']); 291 // connecting to default port (143) 292 define('IMAP_PORT', $row['imapport']); 293 // best cross-platform compatibility (see http://php.net/imap_open for options) 294 define('IMAP_OPTIONS', $row['imapTLSEncryption'] == 'yes' ? '/tls/norsh' : '/notls/norsh'); 295 296 // overwrite the "from" header if it isn't set when sending emails 297 // options: 'username' - the username will be set (usefull if your login is equal to your emailaddress) 298 // 'domain' - the value of the "domain" field is used 299 // '@mydomain.com' - the username is used and the given string will be appended 300 301 define('IMAP_DEFAULTFROM', ''); 302 // copy outgoing mail to this folder. If not set z-push will try the default folders 303 define('IMAP_SENTFOLDER', 'INBOX' . $row['imapdelimiter'] . $row['imapdefaultsentfolder']); 304 // forward messages inline (default false - as attachment) 305 define('IMAP_INLINE_FORWARD', false); 306 // use imap_mail() to send emails (default) - if false mail() is used 307 define('IMAP_USE_IMAPMAIL', true); 308 309 302 310 $rs = pg_query( $GLOBALS['connections']['db'], 'SELECT app_id FROM phpgw_applications WHERE app_name = \'zpush\'' ); 303 311 $row = pg_fetch_assoc( $rs );
Note: See TracChangeset
for help on using the changeset viewer.