Skip to content

Commit

Permalink
Merge pull request #31 from horde/feat/icloud-imap
Browse files Browse the repository at this point in the history
fix: STORE for iCloud and other strict IMAP servers
  • Loading branch information
ralflang authored Mar 28, 2024
2 parents 20e7352 + 4183358 commit 341f6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Horde/Imap/Client/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -3632,14 +3632,14 @@ protected function _storeCmd($options)
if (!empty($options['replace'])) {
$cmds[] = array(
'FLAGS' . ($silent ? '.SILENT' : ''),
$options['replace']
new Horde_Imap_Client_Data_Format_List($options['replace'])
);
} else {
foreach (array('add' => '+', 'remove' => '-') as $k => $v) {
if (!empty($options[$k])) {
$cmds[] = array(
$v . 'FLAGS' . ($silent ? '.SILENT' : ''),
$options[$k]
new Horde_Imap_Client_Data_Format_List($options[$k])
);
}
}
Expand Down

0 comments on commit 341f6d0

Please sign in to comment.