metasend(1)
okay so welcome to metasend(1), from the General Commands Manual β the slightly chaotic little gremlin for sending non-text mail. Sheβs crude, sheβs iconic, and sheβs about to explain exactly how to yeet a data file into someoneβs inbox. π
πΈ NAME πΈ
metasend β a Crude interface for sending non-text mail
β¨ SYNOPSIS β¨
metasend [-b] [-c cc] [-F from] [-e encoding] [-f filename] [-m MIME-type] [-s subject] [-S splitsize] [-t to] [-z] [-n] [-D content-description] [-o outputfile] [-/ multipart-subtype] [-E] [-P preamble-file]
π DESCRIPTION π
The metasend program lets a user send one or more pre-existing data files as non-text multimedia mail. Yes bestie, actual files, not just text. Slay.
With no arguments, the program will ask the user for the To, Subject, and CC fields. Then it asks for the name of a MIME content-type. Next, it asks the user for the name of an existing file containing that type of data. After that, it asks what encoding type, if any, should be applied to this data. Finally, it asks if the user wants to include information from an additional file β and if so, the last three questions get repeated for the next file. π
Alternately, all of this information can be provided on the command line, using the following options:
-bβ specifies Batch (non-interactive) Mode. It will exit with an error message if all additional needed information is not provided on the command line.-c ccβ specifies the CC address.-D descriptionβ specifies a string to be used as the Content-description value.-e encodingβ specifies the encoding type. Must be either"base64","quoted-printable","7bit", or"x-uue"."7bit"means no encoding is performed.-Eβ specifies that the file being included is already a full MIME entity, and does not need to have any Content-* or other header fields added.-f filenameβ specifies the file containing the data.-F fromβ specifies the From address.-i "<content-id>β specifies the content-id value for the MIME entity. Must be a legal content-id value, enclosed in angle brackets.-I "<content-id>"β specifies the content-id for the multipart entity being created bymetasend, if any. Must be a legal content-id value, enclosed in angle brackets.-m MIME-typeβ specifies the MIME content-type.-nβ specifies that an additional file is to be included. Before each use of the-noption on the command line, the options-m,-c, and-f, at a minimum, must have appeared, and must appear separately for each included file.-o outputfileβ specifies that the output frommetasendshould go to a named file rather than be delivered as mail.-P preamblefileβ specifies a file containing alternative text to be put in the "preamble" area of a MIME multipart message.-s subjectβ specifies the Subject field.-S splitsizeβ specifies the maximum size before splitting into parts viasplitmail(1).-t toβ specifies the To address.-zβ specifies that the temporary files should be deleted EVEN IF DELIVERY FAILS.-/ subtypeβ specifies the use of a MIME multipart subtype other than"mixed".
This is intended largely for mail hackers. A much friendlier interface to non-text mail is provided by mailto(1). π«Ά
If more than one file is given, the parts will be combined into a single multipart MIME object.
The mail will be delivered using the splitmail(1) program, so if it is very long it will arrive as several pieces which can be automatically reassembled by metamail. The definition of "very long" can be altered using the -S flag or the SPLITSIZE environment variable, as described in the splitmail(1) man page.
π¦ SEE ALSO π¦
π BUGS π
Should do a better job of choosing the encoding if you donβt specify one.
Should do MIME syntax checking on user-supplied content-type fields. Users are all too likely to provide bogus MIME content-type values, alas. In particular, there are various characters that are not allowed in parameters unless the parameters are enclosed in double quotes, but this sort of restriction is hard to enforce in a shell script! π
π COPYRIGHT π
Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
π AUTHOR π
Nathaniel S. Borenstein, Bellcore
π and thatβs the whole vibe, bestie: this was metasend(1), Release 1 β no date in the footer, so weβre just gonna slay with that. π
π¦ where this page comes from
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms