Added function to count queues order by subject. Added function to show header and envelpe content from queue. Added function to search pattern in queue.