I'm using mailhandler in conjunction with several modules that use the mailhandler hook to process incoming messages.
If none of my modules process the message, I would like mailhandler to ignore the node (rather than attempt to post it as a blog post).
The attached diffs allow users to configure each mailbox with the default node type they would like un-handled messages to be posted as (or optionally set to none, in which case mailhandler will ignore the node).
| Comment | File | Size | Author |
|---|---|---|---|
| mailhandler.module.optionally-skip-node-creation.patch | 8.54 KB | jmcclelland | |
| mailhandler.install.optionally-skip-node-creation.patch | 1.1 KB | jmcclelland |
Comments
Comment #1
cor3huis commentedLooks like a valid improvement also for higher versions. So if someone can test it on 5.x and it works we could see to make it a feature request
Comment #2
ilo commentedFrom my understanding, if your hook_mailhandler() implementation returns NULL, no node or comment is saved at all. Please, review the mailhandler.module file, and search for something like this (it is in 6.x-1.x-dev, but I have no idea when this was introduced)
Comment #3
ilo commentedWell, actually, as this is already fixed in the 6.x version, there is nothing more to do here!