Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed indents.

  • Loading branch information...
commit 5baeae613745b3b74c6f21db00c6351f633a50ee 1 parent 8cfbb1d
@tacker tacker authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 roundcube-webmail-fetcher.php
View
20 roundcube-webmail-fetcher.php
@@ -105,17 +105,17 @@
if(!is_resource($sendmail)) throw new Exception('Could not open sendmail process.');
fwrite($pipes[0], $data);
fclose($pipes[0]);
- $info = stream_get_contents($pipes[1]);
- fclose($pipes[1]);
- $error = stream_get_contents($pipes[2]);
- fclose($pipes[2]);
- $returnValue = proc_close($sendmail);
- if ($returnValue !== 0) throw new Exception('Sendmail failed with: ' . $info . ' / ' . $error);
+ $info = stream_get_contents($pipes[1]);
+ fclose($pipes[1]);
+ $error = stream_get_contents($pipes[2]);
+ fclose($pipes[2]);
+ $returnValue = proc_close($sendmail);
+ if ($returnValue !== 0) throw new Exception('Sendmail failed with: ' . $info . ' / ' . $error);
- // Mark mail as read
- curl_setopt($curl, CURLOPT_URL, $baseUrl . '?_task=mail&_action=mark');
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-RoundCube-Request: ' . $requestToken));
+ // Mark mail as read
+ curl_setopt($curl, CURLOPT_URL, $baseUrl . '?_task=mail&_action=mark');
+ curl_setopt($curl, CURLOPT_POST, true);
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-RoundCube-Request: ' . $requestToken));
curl_setopt($curl, CURLOPT_POSTFIELDS, array('_flag' => 'read', '_remote' => '1', '_uid' => $uid));
$data = curl_exec($curl);
if (curl_getinfo($curl, CURLINFO_HTTP_CODE) !== 200) throw new Exception('Failed to mark mail as read.');
Please sign in to comment.
Something went wrong with that request. Please try again.