1. A method for generating an automatic search query from an electronic mail application of a user comprising: receiving an input corresponding to a selected calendar entry from a calendar program integrated with said electronic mail application; receiving an input corresponding to a search query to search a local index for one or more documents related to the selected calendar entry; executing said search query; and providing search results in response said search query to the user.