Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: limitmail

limitmail - Send out notification emails but avoid flooding


NAME

    limitmail - Send out notification emails but avoid flooding


DOWNLOAD

limitmail


SYNOPSIS

    limitmail --to email --from email --subject subject [file]
 Options:
   -h        get help
   --to      specify receiver's email address
   --from    specify sender's email address
   --subject specify the subject of the message

The mail text can be either specified as a file name or piped in through STDIN.


DESCRIPTION

limitmail is a tool for sending out notification messages via email. It works like a regular mailer, but keeps track who it sent a message to and when. On the next call of limitmail, it will silently discard messages to users who already received messages in a specified timeframe.

The parameter $NO_MORE_THAN_EVERY in the top section of the script specifies this timeframe in seconds.

Bottom line: You can call this script as often as you want, it'll send off messages to users no more often than once in a specified time frame.


EXAMPLES

This example sends the text in bill.txt off to the addressee specified:

  limitmail --to bgates@microsoft.com \
            --from m@perlmeister.com \
            --subject "Where do you want to go today?" \
            bill.txt

This example uses the pipe-in mechanism:

  cat bill.txt | limitmail --to bgates@microsoft.com \
      --from m@perlmeister.com \
      --subject "Where do you want to go today?" \
      bill.txt


LEGALESE

Copyright 2002 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

2001, Mike Schilli <m@perlmeister.com>


Latest update: 20-Oct-2013