Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct syntax for e-mails piped to script? #34

Open
GoogleCodeExporter opened this issue May 22, 2015 · 1 comment
Open

Correct syntax for e-mails piped to script? #34

GoogleCodeExporter opened this issue May 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

#!/usr/local/bin/php -q
<?php
// BEGIN MailParser******************************************
require_once('/home/birdymai/resources/library/MimeMailParser.class.php');

$path = 'php://stdin';
$Parser = new MimeMailParser();
$Parser->setStream(fopen($path, 'r'));

$to = $Parser->getHeader('to');
$sender = $Parser->getHeader('from');
$subject = $Parser->getHeader('subject');
$textbody = $Parser->getMessageBody('text');

Original issue reported on code.google.com by [email protected] on 4 Mar 2013 at 4:36

@GoogleCodeExporter
Copy link
Author

Dsiregard I found my issue!

Original comment by [email protected] on 4 Mar 2013 at 7:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant