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

Bulk update your code to run with PHP 7.0+

Migrating from PHP 5.x to PHP 7.x is a hassle when youre dealing with a large website or multiple websites on a server. So, Ive made some improvements to an existing a shell script to recursively modify directories of PHP pages that load in 4 or 5 but will no longer run in PHP 7.

Continue reading Bulk update your code to run with PHP 7.0+

Last updated on

Quick email forwarder in Shell

I’m always create new forwarding emails for different websites – helps me track down if and when their email list is hacked… To save logging into cPanel or WHM, I’ve created a little script to quickly add new forwarding emails.

Continue reading Quick email forwarder in Shell

Last updated on

Migrating from Office 365 or Yahoo! Mail to cPanel using IMAPSync

This was considerably harder than I thought and there is very little online about migrating away from Office 365 to cPanel. This guide makes things much simpler, saving time looking up the relevant arguments and avoiding the mismatches with the names of the main IMAP folders.  You’ll need a copy of the free software: IMAPSync – used to synchronise emails to and from one server to another.

Continue reading Migrating from Office 365 or Yahoo! Mail to cPanel using IMAPSync

Last updated on

Stop all WHOIS email spam

Finding that a lot of spammers are grabbing your publicly listed WHOIS email address – sending spam about marketing, web development and fake renewal invoices? Perhaps you don’t want to pay $5+ a year for WHOIS privacy per domain to avoid the spam?

Well, there’s a simple way to stop all of that for free…

Continue reading Stop all WHOIS email spam