heirloom_mailx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
heirloom_mailx [2022/06/26 15:14] – flagged Gmail config as no longer functional zilog | heirloom_mailx [2024/09/04 19:04] (current) – es” hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Heirloom mailx (formerly nail) ====== | ||
+ | Part of the now-defunct [[http:// | ||
+ | |||
+ | ===== Documentation and Features ===== | ||
+ | |||
+ | The Heirloom mailx(1) manpage((use '' | ||
+ | |||
+ | * POP3/ | ||
+ | * account-specific folder-hooks | ||
+ | * definable macros | ||
+ | * command and folder aliases | ||
+ | * threading that actually works | ||
+ | |||
+ | There is also some rudimentary Bayesian filtering for dealing with junk mail, a '' | ||
+ | |||
+ | ===== Setup ===== | ||
+ | |||
+ | ==== Avoiding name collision ==== | ||
+ | Heirloom mailx installs as ''/ | ||
+ | |||
+ | <file ~sdfuser/ | ||
+ | alias nail='/ | ||
+ | |||
+ | alias nail '/ | ||
+ | </ | ||
+ | |||
+ | Typing '' | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | The default user configuration file for Heirloom mailx is '' | ||
+ | |||
+ | <file ~sdfuser/ | ||
+ | set NAIL_EXTRA_RC=~/ | ||
+ | </ | ||
+ | |||
+ | This will allow occasional / accidental use of the native mail(1) client and keeps all the “nail-specific” settings in '' | ||
+ | |||
+ | A basic SDF specific Heirloom mailx configuration (using both ~/.mailrc and ~/.nailrc): | ||
+ | |||
+ | <file config ~sdfuser/ | ||
+ | ## ~sdfuser/ | ||
+ | |||
+ | # Set top of mail folder tree to ~/mail: | ||
+ | set folder=mail | ||
+ | |||
+ | # Tell Heirloom mailx where to get additional configurations: | ||
+ | set NAIL_EXTRA_RC=~/ | ||
+ | </ | ||
+ | |||
+ | <file config ~/ | ||
+ | ## ~sdfuser/ | ||
+ | |||
+ | # *** GLOBAL SETTINGS SECTION *** | ||
+ | # Note: | ||
+ | # Set variables _persist_ until the session ends | ||
+ | # unless unset or reset. | ||
+ | # current settings. | ||
+ | |||
+ | # Use alternate SMTP server (bypasses default SMTP): | ||
+ | #set smtp-auth=" | ||
+ | #set smtp-auth-user=" | ||
+ | #set smtp-auth-password=" | ||
+ | #set smtp=smtps:// | ||
+ | |||
+ | # Set SSL Cert check method (" | ||
+ | # Will likely need " | ||
+ | # SDF accounts when the SSL certs are expired. | ||
+ | #set ssl-verify=" | ||
+ | set ssl-verify=" | ||
+ | #set ssl-no-default-ca | ||
+ | #set ssl-v2-allow | ||
+ | |||
+ | # Set directory where " | ||
+ | # (generally not needed if set in ~/.mailrc) | ||
+ | #set folder=mail | ||
+ | |||
+ | # Set MBOX (defaults to ~/mbox): | ||
+ | #set MBOX=" | ||
+ | |||
+ | # Have nail retain copies of outgoing msgs: | ||
+ | set record=" | ||
+ | |||
+ | # Set dead.letter location (default is ~/ | ||
+ | #set DEAD=" | ||
+ | |||
+ | # Retain the specified headers: | ||
+ | retain User-Agent bcc cc date from subject to | ||
+ | |||
+ | # Only retain the specified headers when saving messages: | ||
+ | saveretain bcc cc date from subject to | ||
+ | |||
+ | # Start regardless of whether msgs are in / | ||
+ | set emptystart | ||
+ | |||
+ | # Set From: and ReplyTo: header fields: | ||
+ | # (default is your GECOS data) | ||
+ | #set from=" | ||
+ | #set replyto=" | ||
+ | |||
+ | # Set AUTOSORT criteria: | ||
+ | #set autosort=thread | ||
+ | |||
+ | # Set signature file: | ||
+ | #set signature=" | ||
+ | |||
+ | # Have original msg text quoted in Replies: | ||
+ | set quote | ||
+ | |||
+ | # Specify what should be prompted for before sending msgs: | ||
+ | set askcc | ||
+ | set askbcc | ||
+ | set askattach | ||
+ | |||
+ | # Turn off autoprint so that ' | ||
+ | #unset autoprint | ||
+ | |||
+ | # Have html-based msgs piped thru lynx: | ||
+ | set pipe-text/ | ||
+ | |||
+ | # *** SUB-FOLDER SHORTCUTS SECTION | ||
+ | shortcut saved +Saved | ||
+ | shortcut sent +Sent | ||
+ | shortcut draft +Draft | ||
+ | |||
+ | # *** GROUP ALIASES *** | ||
+ | # (note: cc/bcc mailings need to have at least one To: entry) | ||
+ | alias hop-list hoppy@mud.bog \ | ||
+ | mrwarts@mud.bog \ | ||
+ | froggy@mud.bog | ||
+ | |||
+ | alias bounce spam@uce.gov consumer.hotline@doj.state.or.us | ||
+ | |||
+ | # *** ALIASES *** | ||
+ | alias gopher " | ||
+ | alias nail-devel nail-devel@lists.sourceforge.net | ||
+ | alias netbsd-users " | ||
+ | |||
+ | |||
+ | # *** MACRO DEFINITIONS SECTION *** | ||
+ | # run by typing 'call < | ||
+ | |||
+ | # home - return to / | ||
+ | # Useful for getting back to local mail folders from IMAP accts. | ||
+ | define home { | ||
+ | fi / | ||
+ | set folder=" | ||
+ | set record=" | ||
+ | shortcut saved +Saved | ||
+ | shortcut sent +Sent | ||
+ | shortcut draft +Draft | ||
+ | set from=" | ||
+ | set replyto=" | ||
+ | } | ||
+ | |||
+ | # uas - Unset Alternate SMTP variables | ||
+ | define uas { | ||
+ | unset smtp-auth | ||
+ | unset smtp-auth-user | ||
+ | unset smtp-auth-password | ||
+ | unset smtp | ||
+ | } | ||
+ | |||
+ | # *** Remote IMAP ACCounts Section (no POP3) *** | ||
+ | # Note: ALL outgoing messages are processed LOCALLY unless an | ||
+ | # alternate MTA/SMTP server is set globally (see defaults above) | ||
+ | # or within an ' | ||
+ | # persist until session endsunless unset/ | ||
+ | # current settings, ' | ||
+ | # not cached locally unless " | ||
+ | |||
+ | |||
+ | # Set local caching of remote IMAP accounts: | ||
+ | #set imap-cache=" | ||
+ | |||
+ | |||
+ | # Typical SDF user IMAP acct setup w/ SSL encryption: | ||
+ | account sdfuser2 { | ||
+ | set folder=imaps:// | ||
+ | set record=+Sent | ||
+ | shortcut sent +Sent | ||
+ | shortcut saved +Saved | ||
+ | set from=" | ||
+ | set replyto=" | ||
+ | set password-sdfuser2@mx.sdf.org=" | ||
+ | } | ||
+ | |||
+ | ### note: due to 2022 Gmail policy change this no longer works ### | ||
+ | # Typical Gmail IMAP/SMTP w/ SSL setup | ||
+ | # (need to enable IMAP access first) | ||
+ | account gmail { | ||
+ | set hold | ||
+ | set folder=imaps:// | ||
+ | shortcut sent " | ||
+ | shortcut spam " | ||
+ | set record=sent | ||
+ | set from=" | ||
+ | set replyto=" | ||
+ | set password-gmail.user\@gmail\.com@imap.gmail.com=" | ||
+ | ## gmail SMTP server stuff: | ||
+ | set smtp-gmail.user\@gmail\.com=smtps:// | ||
+ | set smtp-auth-user-gmail.user\@gmail\.com=" | ||
+ | set smtp-auth-password-gmail.user\@gmail\.com=" | ||
+ | } | ||
+ | </ |