Bug 2080 - Support for user+subaddress@domain.tld format
Summary: Support for user+subaddress@domain.tld format
Status: RESOLVED PATCHESWELCOME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders (show other bugs)
Version: 3.7.3
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2009-12-19 18:11 UTC by Pierre Fortin
Modified: 2016-07-23 14:49 UTC (History)
0 users

See Also:


Attachments
Example script for the Python plugin (611 bytes, application/octet-stream)
2009-12-22 13:25 UTC, Holger Berndt
no flags Details

Description Pierre Fortin 2009-12-19 18:11:31 UTC
I make extensive use of recipient-delimiters (usually "+") when providing my email addresses.  This requires manual entry each time I need to respond to an entity where I've provided my address in the "user+subaddress@domain.tld" format.

Suggested enhancement -- in Folder->Properties->Compose, add:

   [ ] Sub-address   ________________________________

which would allow any recipient-delimiter.  i.e.,  enabling this feature and entering "+foo" would cause the resulting From address to automatically become "user+foo@domain.tld" rather than just "user@domain.tld" of the account.
Comment 1 Paul 2009-12-19 19:36:59 UTC
This is surely something very particular to your own personal preference, is it not?
Comment 2 Pierre Fortin 2009-12-19 22:01:07 UTC
Only if one denies the existence of this format within multiple RFCs...  a small sampling of grep'ing for this format:
rfc1147.txt:               sw0l+snmp@andrew.cmu.edu.  ("sw0l" is "ess double-you
rfc2130.txt:   * Keith Moore <moore+charsets@cs.utk.edu>
rfc3113.txt:   EMail: Klensin+iab@jck.com
rfc3467.txt:   EMail: klensin+srch@jck.com
rfc3598.txt:   addressing" (e.g., "ken+sieve@example.org"), it is sometimes
rfc3598.txt:   "ken+sieve@example.org").  If no separator character exists, then
rfc3696.txt:      user+mailbox@example.com
rfc3743.txt:   EMail: Klensin+ietf@jck.com
rfc3767.txt:        Lawrence Greenfield (leg+@andrew.cmu.edu),
rfc3777.txt:   EMail: galvin+ietf@elistx.com
rfc3798.txt:   EMail: tony+rfc3798@maillennium.att.com
rfc3885.txt:   EMail: tony+msgtrk@maillennium.att.com
rfc3887.txt:   EMail: tony+msgtrk@maillennium.att.com
rfc3888.txt:   EMail: tony+msgtrk@maillennium.att.com
Comment 3 Paul 2009-12-19 22:14:06 UTC
The existence of the plus sign in other people's addresses is not conclusive that they use it in the same way as you.
Comment 4 Pierre Fortin 2009-12-19 22:30:04 UTC
Well...  it's a format that's been supported for years in Postfix:
# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(8), relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

Then, there's always the RFC itself...  rfc5233[Jan/08] (which obsoletes rfc3598[Sep/03])
Comment 5 Paul 2009-12-20 00:08:38 UTC
rfc5233 - now it makes more sense
Comment 6 Holger Berndt 2009-12-22 13:25:52 UTC
Created attachment 782 [details]
Example script for the Python plugin
Comment 7 Holger Berndt 2009-12-22 13:27:29 UTC
With the Python plugin in CVS, you can script a workaround yourself in the meantime. I attached a quick & dirty example script that will modify any occurence of "berndth@gmx.de" in the From header to "berndth+foo@gmx.de" if the message was composed from the folder Mailinglisten/Claws-Mail/user. Similar replacements take place for the Bug (+bar) and Translators (+baz) folders.

This script needs to be saved as $HOME/.claws-mail/python-scripts/auto/compose_any

Of course, this solution is not perfect (e.g. you'll need to update the script when you rename a referenced folder), but maybe it's helpful to you.
Comment 8 Pierre Fortin 2016-07-23 14:49:07 UTC
WORKAROUND:

This workaround does not track account changes; but works otherwise.

Folder->Properties->Templates [Compose|Reply|Forward]
   [X] Use template when {composing new,replying to,forwarding} messages 
  From:  user+subaddress@domain.tld

Note You need to log in before you can comment on or make changes to this bug.