Delan Azabani

Forwarding Curtin email

 255 words 1 min  home

In an effort to avoid using any email UI other than the familiar embrace of Gmail via Google Apps, one of the first things I did when I became a Curtin student was to forward my email. I couldn't quite filter all of the incoming emails properly though, until last night I had a sudden realisation.

Most emails to my Curtin account look something like this:

Return-Path: <>
Resent-From: <>
To: <>

The obvious approach was to configure the Outlook Web App to forward email to, and that seemed to work reasonably. On the Gmail side, I simply created a filter that took all emails matching and added the curtin label to them.

Except that didn't work for the significant minority of messages where all of the recipients were blind carbon copied, myself included. Why not filter on the Return-Path or Resent-From headers? Gmail doesn't allow users to search arbitrary headers, only those that are whitelisted. This includes From, To, Subject, Cc, Bcc and Message-ID.

Gmail also allows you to search the Delivered-To headers of messages, and this seemed useless to me because the value would always be There's where the realisation hit me: combined with Gmail's automatic "plus" aliasing, the Delivered-To header is in fact the perfect solution.

Now that I forward Curtin messages to and filter on, no more emails need to be manually labelled. In retrospect, that it took me over a year as a Curtin student to forward my mail properly is somewhat disappointing.