Save your digital receipts to CSV

I have created my own system for retrieving data from my digital receipts by scouring through incoming emails that meet the specific criteria set in cPanel.

After a little trial and error, I settled on some simple PHP and a few steps to get the desired result. As soon as a new receipt email comes in, the PHP script will read through its contents and store a copy of the relevant data – just the date, business name and total – in a CSV which you can download to use later for your bookkeeping.

Continue reading Save your digital receipts to CSV

Last updated on

Bulk delete old emails in cPanel

Another handy script that I originally created in 2014, but updated to perform some sanity checks. This script will check for all files older than x months, or just targeting the junk emails, and permanently delete these emails.

Continue reading Bulk delete old emails in cPanel

Last updated on

Moving IMAP emails offline to save web space

I find that a lot of space taken up on clients’ hosting accounts is from emails, usually emails many years old.

One easy way to save much of the space is to archive the emails in offline folders after a period of time. You only need to do this for your main device if multiple devices use the same account.

Continue reading Moving IMAP emails offline to save web space

Last updated on