Skip to content

Commit 5c14c7f

Browse files
committed
Default folder locations added
1 parent cc316c7 commit 5c14c7f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
99
- NaN
1010

1111
### Added
12-
- NaN
12+
- Default folder locations added
1313

1414
### Breaking changes
1515
- NaN

src/config/imap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
| -Fetch order
105105
| 'asc' - Order all messages ascending (probably results in oldest first)
106106
| 'desc' - Order all messages descending (probably results in newest first)
107+
| -Common folders
108+
| Default folder locations and paths assumed if none is provided
107109
| -Open IMAP options:
108110
| DISABLE_AUTHENTICATOR - Disable authentication properties.
109111
| Use 'GSSAPI' if you encounter the following
@@ -122,6 +124,13 @@
122124
'fetch_flags' => true,
123125
'message_key' => 'list',
124126
'fetch_order' => 'asc',
127+
'common_folders' => [
128+
"root" => "INBOX",
129+
"junk" => "INBOX/Junk",
130+
"draft" => "INBOX/Drafts",
131+
"sent" => "INBOX/Sent",
132+
"trash" => "INBOX/Trash",
133+
],
125134
'open' => [
126135
// 'DISABLE_AUTHENTICATOR' => 'GSSAPI'
127136
],

0 commit comments

Comments
 (0)