sponsor Vim development Vim logo Vim Book Ad

fortune.vim : Adding fortunes to your e-mails and fancy mail quoting

 script karma  Rating 2/3, Downloaded by 1167    Comments, bugs, improvements  Vim wiki

created by
Srinath Avadhanula
 
script type
utility
 
description
This script provides a way to have vim put a fortune at the end of your mail messages. Most unix mail clients automatically handle the capability of having a program output as the signature file, but most windows mail clients, (at least PC-pine) do not (yet) provide a way to do this. This script provides a vim way to do the equivalent, if your mail client is capable of using external editors to compose mails.

In addition, this script also provides a way to change the style in which you quote the reply to your mails. by default, PC-pine quotes messages with the header:
   On Sat 12 Jun 2001, John Doe wrote:
too boring?
This script will change this to:
   In our last exciting episode on Sat 12 Jun 2001, John Doe said:
You can ofcourse customize this to your special whackiness by changing the function ReplaceQuote().
 
install details
1. download the file into your ~/.vim/plugin directory.
2. create a signature file which looks like:
    -----%<-----
    --
    Srinath Avadhanula
    _REPLACE_WITH_FORTUNE_
    -----%<-----
   (only the last line is necessary).
3. in your mail client configuration, set this as your signature file.
   (for pine, this is in the configuration screen).
4. download and install the fortune program somewhere so that its in your
   path and vim can source its output with a simple ". ! fortune" command.
   if you have cygwin installed, then running a google search for "fortune
   cygwin" turns up many relevant hits. just download the relevant .tar.gz
   file and untar it into cygwin's root directory.

You will need to use a mail client which is capable of using external
editors to compose mails. (Outlook readily dissapears from my mind).
Some mail clients on windows platforms having this feature:

   PC-pine: http://www.washington.edu/pine/pc-pine/
  Mahogany: http://mahogany.sourceforge.net/

(I've been using PC-pine exclusively for many moons now).

NOTE:
If the fancy mail quoting does not seem to be working for you check that
your mail client quotes replies either with the header:
   On Sat 12 Jun 2001, John Doe wrote:
or
   On 12 Jun 2001, John Doe wrote:
If its some other format, you will need to tweak the function
ReplaceQuote() (please consider sending me a patch if you do this).
 

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
fortune.vim 1.0 2002-01-30 6.0 Srinath Avadhanula Initial upload
ip used for rating: 54.166.122.86

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