crazy-max / cwsmailbouncehandler Goto Github PK
View Code? Open in Web Editor NEW📬 PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN
License: MIT License
📬 PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN
License: MIT License
Only open folder will be available in the next release because of move operations.
Hello,
i have added a zip file with a eml inside.
This mail is not correctly recognized as bounce mail.
Can you please check this an fix the code.
Resolve news rules categories by status code:
In MailBounceHandler\Handler:
parseDsnFields() can return null for the 'perRecipient' element of the result array.
This ends in a warning in parseBodySectionMachine() on line 877 because 'perRecipient' is not an array.
in class Handler in function openImapRemote line 295
I get some error messages when calling imap_open.
'imap_open(): Couldn't open stream {xxxx.tu-braunschweig.de:993/imap/ssl/validate-cert}INBOX', '/var/www-aaaa/releases/111/vendor/crazy-max/cws-mail-bounce-handler/lib/Cws/MailBounceHandler/Handler.php', 299, array('opts' => '/imap/ssl/validate-cert')
I have already placed the call to openImapRemote in a try catch.
Does it make sense to use a try catch in the openImapRemote function?
It is wanted that mails which are not a delivery notification are not deleted even though DeleteProcessMode is set to on.
I would like to use the NeutralProcessMode and delete the mails if necessary and depending on the situation by hand. Is that possible?
Hi,
Tank you very much for your class but I can't use it.
How to parse the object CwsMbhResult please ?
Thx
I'm trying to display the number of total mails, but i'm getting this error:
Fatal error: Cannot use object of type CwsMbhResult as array
The line is:
$result = $cwsMbh->processMails();
echo 'Número de e-mails: '.$result['counter']['total'].'<br>
Número de e-mails analisados: '.$result['counter']['fetched'].'<br>
Número de e-mails processados: '.$result['counter']['processed'].'<br>
Número de e-mails não processados: '.$result['counter']['unprocessed'].'<br>
Número de e-mails eliminados: '.$result['counter']['deleted'].'<br>
Número de e-mails movidos: '.$result['counter']['moved'];
et si on mettait en place un composer.json.
Composer facilite la mise en place et les mises à jour. Il automatise les mises à jour et gère les dépendances.
Je vais proposer une pull request dans ce sens.
@crazy-max : que penses-tu de découpler la classe principale de ses dépendancs avec les class de debug et de dump ? On aurait ainsi une class autonome et chacun pourrait utiliser son débuggeur préféré. Je penses en particulier lors d' une intégration dans symfony.
can you make a new stable release
is MAILBOX_PORT_TLS_SSL realy Port 995? This is the SSL Port for POP3. Or?
In my Imap Server from the Uni is this Port 993.
Can We make a split into IMAP and POP3 constante?
After Handler->processMails()
i did not find any way to get mail headers or content.
This would be very handy when the processed mail has Handler::CAT_UNKNOWN
or Handler::CAT_UNRECOGNIZED
. We could save the bounced email to DB (or any other source) and later examine it by hand and mark it as soft/hard bounce or to enhance the process and declare new rules.
Is there any way to get the same results without extending your classes? And would you be interested in such Pull request?
For some hosts, move process not working.
IMAP open mode fails to create bounces mailbox sometime.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.