Store notmuch search output to temporary file

to minimise time notmuch search runs for collision avoidance.