This program generates a simple Gmail search query to select all labelled items in the inbox.