Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Parse out information in undeliverable messages as TMail objects

License

Notifications You must be signed in to change notification settings

dmarkow/tmail_bounce_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TmailBounceParser
=================

This is based on Recipe 70 of Rails Recipes: "Handling Bounced Email". It has been updated 
to include implementations for non-standard servers that don't include the message/delivery-status 
and message/rfc822 parts.

Example
=======

message = TMail::Mail.parse(STDIN)
undeliverable_info = message.undeliverable_info

undeliverable_info.original_sender
# => "user@example.com"

undeliverable_info.message_id
# => "1242351jfsh235j523j@ggds.sa"

undeliverable_info.status
# => "Failure"


Released under the MIT license

About

Parse out information in undeliverable messages as TMail objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages