EXPORT: fix dbmail-export without search arg. Fixes #1000