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

From ECE Information Technology Services
Jump to navigationJump to search
 
Line 13: Line 13:
  
 
One particularly handy use of extended usernames is automatic sorting of your
 
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
+
incoming email.
chosen to use [[Mbox to Maildir Conversion|Maildirs]]).
 
  
 
Suppose you are interested in subscribing to the [http://www.securityfocus.com/ bugtraq mailing list].  If you subscribe with
 
Suppose you are interested in subscribing to the [http://www.securityfocus.com/ bugtraq mailing list].  If you subscribe with

Latest revision as of 10:53, 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.

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