sponsor Vim development Vim logo Vim Book Ad

postmail.vim : mail message posting plugin. (python required)

 script karma  Rating 4/3, Downloaded by 956    Comments, bugs, improvements  Vim wiki

created by
omi taku
 
script type
utility
 
description
Send 'current editing buffer', or 'selected area of text' with email.
Most simplest usage is to execute :Mail command.

Supported Mail Auth type is
    - basic SMTP password Auth
    - POP before STMP Auth
    - Outbound Port 25 Blocking
    - GMail

This plugin needs '+python', '+iconv', '+multi_byte' and
Python is installed, and $PATH is appropriately set.

USAGE
You can use :Mail command to send email.
See also postmail-example .

:[range]Mail
        send mail message.
        if [range] is selected, send selected text.
        if [range] is not selected, send current buffer.

:[range]Mail {to_mailaddress}
        send mail message to {to_mailaddress}.
        if [range] is selected, send selected text.
        if [range] is not selected, send current buffer.

:[range]Mail {to_mailaddress1} {to_mailaddress2}, {to_mailaddress3}
        send mail message to {to_mailaddress1}, {to_mailaddress2}, and
        {to_mailaddress2}.
        if [range] is selected, send selected text.
        if [range] is not selected, send current buffer.

COMMAND USAGE EXAMPLE
:Mail
        send mail message.
        message is current buffer text.

:Mail mail@nanasi.jp
        send current buffer text to 'mail@nanasi.jp' address.

:6,20Mail mail@nanasi.jp
        send from line 6 to line 20 text to 'mail@nanasi.jp' address.
 
install details
1. Unzip postmail-vim-plugin.zip, and copy to 'plugin', 'doc' directory in
   your 'runtimepath' directory.

    $HOME/vimfiles (Windows)
    $HOME/.vim/ (Unix)

2. Edit 'postmail.conf' and setup mail server configuration.
    postmail.conf file encoding is same with &encoding value.

    :echo &encoding

3. Execute ':helptags' command to your runtimepath 'doc' directory.

    :helptags $HOME/vimfiles/doc (Windows)
    :helptags $HOME/.vim/doc (Unix)

CONFIGURATION
postmail.conf file is mail server configuration file.
simply configuration file setup is to comment out, and replace some
configuration setting. See postmail.conf in your plugin directory.
 

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
postmail-vim-plugin.zip 0.6 2009-12-04 7.0 omi taku refactoring plugin, and more easy setupable.
postmail.zip 0.5.3 2008-08-18 7.0 omi taku plugin/postmail.vim
- Add escape code if mail_encoding is 'ISO-2022-JP'.
postmail.zip 0.5.2 2008-08-16 7.0 omi taku - Change script name from 'sendmail' to 'postmail'.
- Change from 'Vimball' to 'zip' archive distribution.

sendmail.vba.zip 0.5.1 2008-08-14 7.0 omi taku version : 0.5.1

plugin/sendmail.vim
- Remove document. Move to document directory.
- Fix error check logic, 'sendmail.conf is not configured.'.

doc/sendmail.txt
- Created.

plugin/sendmail.py
- Send mail in background.

plugin/sendmail.conf
- Removed.

sendmail_doc_ja.zip 0.5.1 2008-08-14 7.0 omi taku Help Document In Japanese.
sendmail.vba 0.5 2008-08-13 7.0 omi taku Initial upload
ip used for rating: 54.82.217.75

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.
   
SourceForge.net Logo