User Tools

Site Tools


s-mailx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
s-mailx [2022/02/07 19:25] zilogs-mailx [2022/02/10 19:04] – added system-wide config file reference zilog
Line 9: Line 9:
   * all Heirloom-mailx features: POP3/IMAP/SMTP, folder hooks, macros, threading, etc.   * all Heirloom-mailx features: POP3/IMAP/SMTP, folder hooks, macros, threading, etc.
   * Maildir support   * Maildir support
 +  * readline (cmd history)
   * optional coloration   * optional coloration
   * enhanced spam filtering   * enhanced spam filtering
Line 21: Line 22:
  
 ==== Configuration ==== ==== Configuration ====
 +Several S-mailx options are pre-set via ''/usr/pkg/etc/s-nail.rc'', the system-wide S-mailx configuration file; worth checking out to see what the defaults are before making customizations.
 +
 The default user configuration file for S-mailx is ''~/.mailrc'' , unfortunately also used by the native NetBSD mail(1) and Heirloom-mailx clients.  If you never plan to use the other clients then you can go ahead and put all your settings in ''~/.mailrc'' ; chances are the native NetBSD mail(1) will just ignore any settings it doesn't understand; Heirloom-mailx likely will complain more.  A somewhat better option which maintains settings separation is to create a minimal ''~/.mailrc'' and add the following to it: The default user configuration file for S-mailx is ''~/.mailrc'' , unfortunately also used by the native NetBSD mail(1) and Heirloom-mailx clients.  If you never plan to use the other clients then you can go ahead and put all your settings in ''~/.mailrc'' ; chances are the native NetBSD mail(1) will just ignore any settings it doesn't understand; Heirloom-mailx likely will complain more.  A somewhat better option which maintains settings separation is to create a minimal ''~/.mailrc'' and add the following to it:
  
Line 41: Line 44:
 </file> </file>
  
-Note that this technique is also used for the Heirloom mailx client via the NAIL_EXTRA_RC variable; having both ''NAIL_EXTRA_RC'' and ''mailx-extra-rc'' set in ''~sdfuser/.mailrc'' will likely produce ignore-able but annoying errors when S-mailx is run.+Note that this technique is also used for the Heirloom mailx client via the NAIL_EXTRA_RC variable; having both ''NAIL_EXTRA_RC'' and ''mailx-extra-rc'' set in ''~sdfuser/.mailrc'' will likely produce ignore-able but fairly annoying errors when S-mailx is run.
  
 <file config ~/.s-nailrc> <file config ~/.s-nailrc>
Line 51: Line 54:
 # see s-nail(1) for details: # see s-nail(1) for details:
 set v15-compat=yes set v15-compat=yes
- 
-# always start even if no new messages: 
-set emptystart 
  
 # set EDITOR if different than default: # set EDITOR if different than default:
Line 119: Line 119:
  
 # Typical Gmail IMAP/SMTP w/ SSL setup (enable IMAP on your acct first); # Typical Gmail IMAP/SMTP w/ SSL setup (enable IMAP on your acct first);
-# note use of "URL encodingsyntax in some settings, i.e. '%40' = '@' :+# note use of "URL percent encodedchars in some settings, i.e. '%40' = '@' :
 account gmail { account gmail {
         set hold         set hold
         set folder="imaps://gmail.user%40gmail.com@imap.gmail.com/INBOX"         set folder="imaps://gmail.user%40gmail.com@imap.gmail.com/INBOX"
-        set password-gmail.user%40gmail.com@imap.gmail.com="********"+        set inbox="imaps://gmail.user%40gmail.com@imap.gmail.com/INBOX" 
 +        set password-gmail.user%40gmail.com@imap.gmail.com='********'
         set shortcut sent="imaps://gmail.user%40gmail.com@imap.gmail.com/[Gmail]/Sent Mail"         set shortcut sent="imaps://gmail.user%40gmail.com@imap.gmail.com/[Gmail]/Sent Mail"
         set shortcut trash="imaps://gmail.user%40gmail.com@imap.gmail.com/[Gmail]/Trash"         set shortcut trash="imaps://gmail.user%40gmail.com@imap.gmail.com/[Gmail]/Trash"
         set from='Gmail User <gmail.user@gmail.com>'         set from='Gmail User <gmail.user@gmail.com>'
-        set replyto='Gmail User <gmail.user@gmail.com>'+        set reply-to='Gmail User <gmail.user@gmail.com>'
         set record=+Sent         set record=+Sent
         shortcut saved +Saved         shortcut saved +Saved
         shortcut sent +Sent         shortcut sent +Sent
-        ## Gmail SMTP stuff: +        ### Gmail SMTP stuff ### 
-        set smtp=smtps://smtp.gmail.com +        # => reserved chars in SMTP pwd need to be URL percent encoded <= 
-        set smtp-auth-user="gmail.user@gmail.com+        set mta="smtps://gmail.user%40gmail.com:*********@smtp.gmail.com
-        set smtp-auth-password="********"+
         }         }
  
 </file> </file>
  
s-mailx.txt · Last modified: 2022/06/26 15:15 by zilog