Difference between revisions of "How To Sort Email Using Address Extensions"

From ECE Information Technology Services
Jump to navigationJump to search
Line 31: Line 31:
  
  
==See Also==  
+
==See Also==
* [[Mbox to Maildir Conversion]]
 

Revision as of 09:47, 20 August 2021


Email can be addressed to you in one of two ways:

  • to your standard email address: username@ece.ubc.ca (e.g., johns@ece.ubc.ca)
  • to an extended email address: username+extension@ece.ubc.ca (e.g., johns+foobar@ece.ubc.ca)

Both address forms are recognized as being for you. The difference is that the mail server can be told to do different processing for mail addressed to your extended email address based on the extension. The delimiter separating your username and the extension is the + (plus) character. You can use as many different extensions as you like: all the email will still be delivered to you.

One particularly handy use of extended usernames is automatic sorting of your incoming email. (Please note: this will only work for those people who have chosen to use Maildirs).

Suppose you are interested in subscribing to the bugtraq mailing list. If you subscribe with username+bugtraq@ece.ubc.ca, and you place a file named .forward+bugtraq file in your home directory containing:

~/Maildir/.bugtraq/

Then email from the bugtraq mailing list would be sorted into your bugtraq folder automatically. No more bugtraq emails cluttering your normal inbox!

NB: the trailing slash on ~/Maildir/.bugtraq/ tells the mail server to deliver to a Maildir-formatted mailbox.


See Also