MUTTPRINT(1)
πΈ MUTTPRINT β the short manual, but make it cute πΈ
okay so. welcome to muttprint, bestie π this is the man page for the Muttprint utility, living in section 1 of the manual. it's giving "pretty printing of mails with Mutt" and honestly? obsessed.
β¨ SYNOPSIS β¨
muttprint [options]... [-f file]
π¦ DESCRIPTION π¦
so this manual page documents the Muttprint utility, briefly. fun fact: it was originally written for the Debian GNU/Linux distribution because the original program didn't have a manual page at all β not me showing up to write the docs π β but now the author took over this man page in POD-format. slay.
Muttprint is a utility that formats the printing of Mutt and other mail clients like XFMail or PINE so it looks like the printing from Netscape Messenger or Kmail. it can print a little penguin π§ on the first page and a headline on every page. furthermore β and this is the real main character move β it only prints the most important headers, not the whole plethora of them. no cap.
for detailed information about Muttprint, go read the User's guide in PDF and HTML format at /usr/share/doc/muttprint/. π
anyway, you have to put the following line in your /etc/Muttrc or ~/.muttrc:
set print_command="muttprint"
if you want to customize the settings of Muttprint, just copy /usr/share/doc/muttprint/sample-muttprintrc-en to /etc/Muttprintrc or ~/.muttprintrc β in reliance, depending on whether you want to change the settings for the whole system or just one user. π
Muttprint defaults to English language settings if the environment variable LANG is not set. for example, in a German environment you should set:
export LANG=de_DE
this can for instance be done in your local ~/.bashrc. for more detailed information about localization of Muttprint, read the User's guide. π
π OPTIONS π
PLEASE NOTICE: this options override the corresponding settings in~/.muttprintrcand/etc/Muttprintrc.
and here's the description of all command line options (a description of the settings in the rcfile is included in the sample-muttprintrc-en distributed with Muttprint):
-h,--helpβ prints a list of all possible options. bestie behaviour fr fr π«Ά-v,--versionβ prints the current version of Muttprint. β¨--print-localeβ prints out information about the current locale environment and exits. bye! π-f file,--file fileβ reads from file instead of STDIN. useful for some mail clients like XFMail. if file is-, Muttprint reads from STDIN.-p printername,--printer printernameβ uses another printer than the default printer or the setting in the rcfile. you can also print in file usingTO_FILE:/path/to/fileas printer name. if you would like to have the result in STDOUT, set the printer name to-. π¨οΈ-C print command,--printcommand print commandβ sets the command which is used for printing to print command. thereby the string$PRINTERis replaced by the specified printer name. CUPS support could be activated byCUPS; alternatively you can specify any command that contains the string$CUPS_OPTIONSwhich is replaced by the options used for CUPS.-i file,--penguin fileβ takes file as picture printed on the right top of the sheet. file must contain the full path. set file tooffif you wouldn't like to print a picture. (sad, but valid π§π)-x,--x-face|-nox,--nox-faceβ turns on or off the printing of the picture which was transmitted in theX-Face:header. read the documentation for a detailed explanation.-t number,--speed numberβ this is the amount of time in seconds which your printer needs to print one page. it is only necessary if you use duplex printing. default is30(seconds).-w number,--wait numberβ amount of time in seconds which Muttprint should wait between printing odd and even pages for duplex printing.-F fontname,--font fontnameβ here you can choose a nice font family for your printing. possible are:Latex,Latex-bright,Latin-modern,Times,Utopia,Palatino,Charter,Bookman,CentSchool,Chancery,HelveticaandAvantGarde. if all fonts are available on your system depends of your installed LaTeX-system. default isLatex.-H,--headrule|-noH,--noheadruleβ here you can choose whether it should be printed a rule after the top line on pages greater than 2 or not.-b,--footrule|-nob,--nofootruleβ here you can choose whether it should be printed a rule over the foot line or not.-S style,--frontstyle styleβ choose a style for the printing of the mail headers on the first page:plain,border(default),Border,fbox,shadowbox,ovalbox,Ovalbox,doublebox,grey,greybox. read the manual for a detailed description of this values. π-a headers,--printed-headers headersβ specify the headers that should be printed. separate each header with_. headers that are embedded in*are printed bold; use/for italic printing. if a header does not exist, it will be omitted. the given order is the same as on the printing.
two examples:
Date_To_From_CC_Newsgroups_*Subject* (default)
/Date/_To_From_X-Mailer_*/Subject/*
-P paperformat,--paper paperformatβ choose your paper format:A4in most countries ("DIN A4" in Germany) andletterin the U.S. π-e String,--date Stringβ this option accepts two settings:originalandlocal. if you useoriginal, the date will be printed unchanged as it appears in the mail header, i. e. in English and in the sender's time zone. if set tolocal, the date will be printed in the local language and in the system's time zone. see the options--date-formatand--lang.
examples:
original: Tue, 15 Jan 2002 21:43:49 +0100
local: Dienstag, 15. Januar 2002 21:43:49
(German locale)
-E String,--date-format Stringβ this options allows you to change the date format (if you've chosenlocalbefore). the argument is a format string according tostrftime(3), e. g.:
"%A, %d. %B %Y %H:%M:%S" (standard in Germany)
"%a, %d.%m.%y %H:%M" (shorten form)
"%Y-%m-%d %H:%M:%S" (ISO format)
-A String,--addressformat Stringβ with this option you can set how mail addresses are printed. the valueoriginaldoes not change the header. otherwise you have to specify a format string; following substitutions are done:
%r name ("real name")
%a mail address
\n newline
the default setting is %r <%a>,\n. moreover, you can emphasize some parts with bold or italic printing. you have to enclose these parts with stars ("*") for bold or with slashes ("/") for italics.
example:
"/%r/ (%a),"
the quotes are necessary because the string contains spaces. otherwise the shell splits the string into two parts. π
-n String,--verbatimnormal Stringβ this sets the options which are passed to the Verbatim environment that is necessary to print the normal mail text. detailed explanations are in the user's guide. some examples:
fontshape=it italic fonts
frame=topline border above the block
fontfamily=helvetica Helvetica font
fontsize=\Huge huge font
to combine options, you have to separate each option with a comma, e. g. fontshape=it,fontseries=b.
-V String,--verbatimsig Stringβ same as--verbatimnormal, but this sets how the signature is printed. if the argument israw, there is now discrimination between normal text and signature.-D,--debug|-noD,--nodebugβ choose whether Muttprint writes to a log file/tmp/muttprint.log. useful to ask some other about help if Muttprint doesn't work. π-B,--background|-noB,--nobackgroundβ after reading from standard input, Muttprint runs in the background. the advantage is that the you can use mail client immediately after start printing. the disadvantage is that error message could not be printed anymore. so use this option only if Muttprint works error-free on your system. β οΈ-d,--duplex|-nod,--noduplexβ enables or disables duplex printing. if enabled, Muttprint prints only odd pages and waits some time before it prints even pages.-2|-1β prints two pages on one sheet as shown here:
+----------+----------+
| | |
| | |
| 1 | 2 |
| | |
| | |
| | |
+----------+----------+
this feature is called papersave mode in the manual and in the rcfile. π±
-g number,--topmargin numberβ sets the top margin in millimeters.-G number,--bottommargin numberβ sets the bottom margin in millimeters.-j number,--leftmargin numberβ sets the left margin in millimeters.-J number,--rightmargin numberβ sets the right margin in millimeters.-s,--rem_sig|-nos,--norem_sigβ removes the signature (separated by"-- ") in the printing. this is useful for very long signatures. but more and more people (or mail clients) doesn't separate the signature correctly so this feature works not always, see also the next option.--sig_regexp Regular Expressionβ sets the regular expression (in Perl syntax) used to recognize signatures. the default is^-- $.-q,--rem_quote|-noq,--norem_quoteβ remove the quoted paragraph from the printing.
Muttprint detects the quoting with the same regular expression as Mutt, so it should work. π
-z size,--fontsize sizeβ specifies the font size. possible values are10pt,11ptand12pt.-W number,--wrapmargin numberβ controls how long the longest line could be. longer lines are wrapped automatically and the paragraph will be reformatted.-r file,--rcfile fileβ specifies another configuration file, which is read additionally to/etc/Muttprintrcand~/.muttprintrc. this file overwrites all other settings, including this one which are done by command line parameters. (it makes no sense to include other options despite-fif you use this option.)
πΎ FILES πΎ
Okay bestie, here's where all the files live β the whole squad, no cap:
/usr/bin/muttprintβ the program Muttprint itself, literally the main character of this whole operation π/usr/bin/muttprint-langinfoβ the helping program for reading the system's default encoding, lowkey doing the behind-the-scenes work β¨/etc/Muttprintrcβ the system-wide configuration file, the group-chat rules for everyone π«Ά~/.muttprintrcβ the user configuration file, aka your personal vibe settings π/tmp/muttprint-XXXXXβ temporary files created by Muttprint, they're just passing through, periodt π/usr/share/doc/muttprint/β Muttprint manual files in different languages and formats, iconic multilingual behavior π/usr/share/ospics/β some pictures which can be used for printing on the first page of your mail, aesthetic af π¦/usr/lib/x86_64-linux-gnu/muttprint/translationsβ translation files, so everyone can understand the slay in their own language π
π SEE ALSO π
mutt(1)β the original mail bestie, go check it out π- Homepage: http://muttprint.sf.net β the official URL, no cap π
Β©οΈ COPYRIGHT Β©οΈ
X 2000-03 Bernhard Walle
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Like, zero warranty, bestie β it's giving "use at your own risk" energy π
βοΈ AUTHOR βοΈ
Bernhard Walle <Bernhard.Walle@gmx.de> β the author, the icon, the legend π
π οΈ MAINTAINER π οΈ
Lukas Ruf <lukas.ruf@lpr.ch> β keeping the vibe alive, we stan π«Ά
π This page came to you via perl v5.32.1 on 2021-12-13 β MUTTPRINT(1), slay and goodbye bestie! π
π¦ where this page comes from
- debian bookworm: muttprint 0.73-11
- ubuntu jammy: muttprint 0.73-11
- ubuntu noble: muttprint 0.73-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms