Complete mail parsers
|Top Previous Next
Example projects > Complete mail parsers
If one of the complete mail parsers shall be used with the IMP plugin, then the corresponding option to check the complete e-mail should be set.
The standard specification for e-mails is called MIME (Multipurpose Internet Mail Extensions). There is a really complete MIME parser, which also parses the sub-structures of all fields in detail:
Spam mails often are made sloppy and don't pass this parser. So it could be used as a spam filter with little effort. But this would be a sparrows-shooting with cannons perhaps.
The Simple_MIME parser is a generalized form of the MIME parser above. Simple_MIME is quite tolerant to syntax violations. Only the parts were taken from the parser above, which are necessary to break down the MIME structure and make the text sections available, separated from the headers and the binary data.