Fix number of messages retrieved.  Used to be n-1
Set the purge parameters using the parameter x (for delete)
Merge pull request #307 from PascalN2/master

Fix number of messages retrieved and Set the purge parameters using the parameter x