mail/shell
author Tomas Zeman <tzeman@volny.cz>
Sun, 25 Aug 2013 21:04:14 +0200
changeset 34 11d20ddca9d8
parent 28 4beaaa539ed9
permissions -rw-r--r--
scm/hg-git-rosetta-stone: simplified mapping between hg commands and git commands If you know how to use hg very well and just looking at how to do the same things in git, this page is right for you. Use it like a dictionary hg -> git.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     1
http://www.shelldorado.com/articles/mailattachments.html
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     2
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     3
Sending e-mail using shell scripts
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     4
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     5
File attachments with MIME
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     6
  * mutt
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     7
  * MetaMail: mailto, metasend ftp://ftp.research.telcordia.com/pub/nsb/)
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     8
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     9
The most interesting command line arguments of metasend are listed in the
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    10
following table [refer to metasend(1) for a complete list].
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    11
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    12
-b	batch (non-interactive) mode
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    13
-c cc	CC address (for copy of the mail)
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    14
-f filename	Name of file to attach
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    15
-m MIME-type	MIME content type, e.g. "text/plain" or "application/octet-stream"
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    16
-s subject	Title (subject) of the mail message
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    17
-t to	Recipient's address
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    18
-n	Next file attachment (needed for multiple file attachments)
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    19
-D description	Description of the file content
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    20
-o outputfile	Name of an output file. If the -t option is given, the mail is sent directly to the addressee
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    21
4beaaa539ed9 Added mail processing tips (in shell)
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    22
  * mpack ftp://ftp.andrew.cmu.edu/pub/mpack/