This is a basic addon to automatically loot currency from sold auction lots when you open your mailbox.
90% of the code for this was copied from
Dolgubon's Lazy Writ Crafter because he has very similar functionality while looting hireling materials. I simply expanded it for my purposes.