sponsor Vim development Vim logo Vim Book Ad

cream-email-munge : Munge an email address

 script karma  Rating 22/10, Downloaded by 1594  Comments, bugs, improvements  Vim wiki

created by
Steve Hall
 
script type
utility
 
description

Posted email addresses are regularly harvested and processed by automated web search tools. These addresses often end up added or sold to bulk email lists so that the unsuspecting address owner receives large quantities of unsolicited email, also known as Spam.

To avoid having one's email address harvested in this way, it can be "munged", or made unrecognizable to the automated system while still clearly appearing as an email address to any human reader. Examples:

  unmunged:  
       username@domain.com

  munged, separator type:
       <username>·<domain>·<com>
       |username|at|domain|dot|com|

  munged, substitution type:
       useNrnaOme@SdomPainA.coMm (remove "NOSPAM" to email)
       useSrnPamAe@MdoFmaRinE.cEom (remove "SPAMFREE" to email)

  munged, completion type:
       usernam____n.com (insert "e@domai" to email)

This script provides a visual mode mapping Shift+F12 which will munge any selected email address randomly per one of the examples above. The main function "Cream_email_munge()" will also return a munged address if passed a valid email, like:

  let mymunge = Cream_email_munge("username@domain.com")


This is one of many custom utilities and functions for gVim from the Cream project (http://cream.sourceforge.net), a configuration of Vim for those of us familiar with Apple and Windows software.

 
install details

Drop this file into your plugins directory and (re)start Vim.

 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cream-email-munge.vim 0.2a 2003-01-22 6.0 Steve Hall Fixed omission of <CR> at mapping end, sorry.
cream-email-munge.vim 0.2 2003-01-22 6.0 Steve Hall Added both substitution type munging [useNrnaOme@SdomPainA.coMm (remove "NOSPAM" to email)] and completion type munging [usernam____n.com (insert "e@domai" to email)].

cream-email-munge.vim 0.1 2003-01-21 6.0 Steve Hall Initial upload
ip used for rating: 18.222.163.31

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github