cream-email-munge


Ⅰ. 插件描述

Munge an email address

Ⅱ. 基本信息

创建日期:  2003-01-21
使用用户:  1
Github星:  1
插件作者:  Steve Hall

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/cream-email-munge'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/cream-email-munge'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/cream-email-munge'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cream-email-munge

Ⅳ. 文档说明

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.

添加新评论