I've been toying with the Mail::DomainKeys and Mail::DKIM modules and they both want to have all of the data lines, which is going to get wasteful (performance-wise) really fast. Would it be reasonable to create a new data_lines hook which would receive each line as it was received? The existing data hook would fire off a copy of the line to each registered data_lines plugin, which could return:

1) DECLINED (hasn't determined whether this message is good);
2) OK (has determined that this message isn't interesting or is valid);
3) DENY (don't continue accepting DATA lines).

Looking at the existing domainkeys plugin, I may just create a dkim plugin and have it include DomainKeys support it it finds that header (as a message could be signed with both), so that at least only a single extra copy of the message is going to be made in most cases.

John

Reply via email to