-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
61 lines (40 loc) · 1.87 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/*
config.php - Sets an array with connection details for your remote IMAP server.
HOST - Internet domain name or bracketed IP address of server.
PORT - optional TCP port number, default is the default port for that service
USER - your account name
PASSWORD - your account password
FLAGS - optional flags, see following table.
/service=service mailbox access service, default is "imap"
/user=user remote user name for login on the server
/authuser=user remote authentication user; if specified this is the user name whose password is used (e.g. administrator)
/anonymous remote access as anonymous user
/debug record protocol telemetry in application's debug log
/secure do not transmit a plaintext password over the network
/imap, /imap2, /imap2bis, /imap4, /imap4rev1 equivalent to /service=imap
/pop3 equivalent to /service=pop3
/nntp equivalent to /service=nntp
/norsh do not use rsh or ssh to establish a preauthenticated IMAP session
/ssl use the Secure Socket Layer to encrypt the session
/validate-cert validate certificates from TLS/SSL server (this is the default behavior)
/novalidate-cert do not validate certificates from TLS/SSL server, needed if server uses self-signed certificates
/tls force use of start-TLS to encrypt the session, and reject connection to servers that do not support it
/notls do not do start-TLS to encrypt the session, even with servers that support it
/readonly request read-only mailbox open (IMAP only; ignored on NNTP, and an error with SMTP and POP3)
MAILBOX - remote mailbox name, default is INBOX
SAVEPATH - where to save attachments on the local server
*/
return array(
'account' => array(
'server' => array(
'host' => 'imap.gmail.com'
, 'port' => '993'
, 'user' => 'youruser'
, 'password' => 'swordfish'
, 'flags' => array('imap', 'ssl')
, 'mailbox' => "INBOX"
)
, 'savepath' => 'attachments/'
)
);