You could do this with a preprocessing script and something like qie.writeFile() and/or qie.sendEmail(). By setting the source node to only run the preprocessing script when messages fail to parse, you could limit which files where written out to the archive folder to just those files that are invalid for what the channel source is set to process. Utilizing an if statement within the preprocessing script, you can limit yourself to just zero-length files.