This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetchmail: IMAP< * OK GroupWise IMAP4rev1 Server Ready | |
fetchmail: IMAP> A0001 CAPABILITY | |
fetchmail: IMAP< * CAPABILITY IMAP4rev1 AUTH=XGWTRUSTEDAPP XGWEXTENSIONS | |
fetchmail: IMAP< A0001 OK CAPABILITY completed | |
fetchmail: IMAP> A0002 LOGIN "user1" * | |
fetchmail: IMAP< A0002 OK LOGIN completed | |
fetchmail: IMAP> A0003 SELECT "INBOX" | |
fetchmail: IMAP< * 260 EXISTS | |
fetchmail: IMAP< * 1 RECENT | |
fetchmail: IMAP< * OK [UNSEEN 260] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Mailparse PECL Extension | |
- name: install mailparse pecl extension | |
command: pecl install mailparse | |
register: pecl_result | |
changed_when: "'already installed' not in pecl_result.stdout" | |
failed_when: "pecl_result.stderr or ('ERROR' in pecl_result.stdout)" | |
- name: create mailparse.ini | |
copy: content="extension=mailparse.so" dest=/etc/php5/mods-available/mailparse.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALL - return all messages matching the rest of the criteria | |
ANSWERED - die gesuchten Nachrichten wurden beantwortet | |
BCC "text" - die gesuchten Nachrichten enthalten "text" im Bcc: Feld | |
BEFORE "datum" - die gesuchten Nachrichten wurden vor "datum" gesendet | |
BODY "text" - der Nachrichtenkörper enthält "text" | |
CC "text" - die gesuchten Nachrichten enthalten "text" im Cc: Feld | |
DELETED - die gesuchten Nachrichten sind zur Löschung vorgemerkt | |
FLAGGED - match messages with the \\FLAGGED (sometimes referred to as Important or Urgent) flag set | |
FROM "text" - sucht Nachrichten mit "text" im Absender (From:) | |
KEYWORD "text" - sucht Nachrichten mit Schlüsselwort "text" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once 'vendor/autoload.php'; | |
$mbox = imap_open('{demo.host.com:993/imap/ssl/novalidate-cert}INBOX', '[email protected]', 'megasecurepassword') or die("connection errror: " . imap_last_error()); | |
/** | |
* @param $imap_body | |
* @throws Exception | |
*/ | |
function parse_with_extension($imap_body) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAG13 FETCH 1:2 RFC822.HEADER | |
* 1 FETCH (RFC822.HEADER {1355} | |
Return-Path: <[email protected]> | |
Delivered-To: [email protected] | |
Received: from localhost (h1440682.stratoserver.net [127.0.0.1]) | |
by h1440682.stratoserver.net (Postfix) with ESMTP id 01E4FEC9A84 | |
for <[email protected]>; Sun, 29 Nov 2009 11:12:22 +0000 (UTC) | |
X-Virus-Scanned: Debian amavisd-new at h1440682.stratoserver.net | |
X-Spam-Score: -2.167 | |
X-Spam-Level: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y language-pack-en-base | |
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.0 | |
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd php7.0-json php7.0-mysql php7.0-readline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
additional_strace_args="$1" | |
MASTER_PID=$(ps auwx | grep php-fpm | grep -v grep | grep 'master process' | cut -d ' ' -f 6) | |
while read -r pid; | |
do | |
if [[ $pid != $MASTER_PID ]]; then | |
nohup strace -r -p "$pid" $additional_strace_args >"$pid.trc" 2>&1 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
trait RestControllerTrait | |
{ | |
public function index() | |
{ | |
$m = self::MODEL; | |
return $this->listResponse($m::all()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$in = fopen("php://input", "r"); | |
$out = fopen("file.txt", "w+"); | |
stream_copy_to_stream($in, $out); | |
fclose($in); | |
fclose($out); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Wyrfel\Helper; | |
use Exception; | |
/** | |
* Callback helper | |
* | |
* This allows passing parameters to callbacks for php built-ins that take a callback |