Hello Predrag.

Predrag Punosevac wrote in <20191229225900.teyf_q4kf%[email protected]>:
 |I apologize for a direct email. I am not sure new mailing list will
 |allow me to post. 

Sure it does, you were subscribed from begin on unless i am
mistaken. :)

 |I kept my own v14.8.12 copy of nail after few things got broken on
 |OpenBSD.  I didn't notice that you adopted OpenBSD port and updated it
 |to 14.9 branch until today. Old port was behind the version I was using.

Well, i tried it often behind the scenes, and i am very lucky that
Stuart Henderson is the one who now accepts my patches.

 |I just installed v14.9.15 but my configuration files seems to be broken.

Without v15-compat set??  Really?  Maybe i will try this out
tomorrow to find out about it, then.

 |I skim through documentation and I see that at least my smtp options are
 |no longer correct. Could somebody help me fix my .nailrc file so that I
 |can jump on the latest code. 
 |
 |This is what I have now

I would strongly urge you to do

  set v15-compat=yes

as that will be default from v14.10 on, and many things base upon
that.  And forget about anything else, as it will vanish.

 |account gmail {
 |        set folder=imaps://[email protected]
 |        set imap-use-starttls

Unused if all you use is imaps://.

  set user=ppunosevac \
    folder=imaps://imap.gmail.com

 |        set [email protected]="Secret"

  set password="Secret"

Is local to "account gmail" and applies to all protocols.

 |        set record=+[Gmail]/Sent\ Mail MBOX=+mbox outfolder

In general you should note that we head towards shell-style
argument quoting.  Should work here though.

 |        set smtp="smtp.gmail.com:587"
 |        set from="Predrag Punosevac <[email protected]>"
 |        set smtp-use-starttls
 |        set smtp-auth="login"
 |        set smtp-auth-user=punosevac
 |        set smtp-auth-password="Secret"

We want mta now, with v15-compat even more than ever.

  set from="Predrag Punosevac <[email protected]>" \
    mta=smtps://smtp.gmail.com:465 \
    smtp-auth=plain

Password and user from above.  Unfortunately all the new SMTP
automatization no earlier but v14.10, so you still have to set
smtp-auth here.

 |# IMAP SHORTCUTS SECTION for standard Gmail folders
 |        shortcut allmail +[Gmail]/All\ Mail
 |        shortcut sent +[Gmail]/Sent\ Mail
 |        shortcut spam +[Gmail]/Spam
 |        shortcut trash +[Gmail]/Trash

You could optimize by calling shortcut only once

  shortcut allmail '+[Gmail]/All Mail' \
    sent '+[Gmail]/Sent Mail' \
    spam '+[Gmail]/Spam' \
    trash '+[Gmail]/Trash'

 |}

 |# Binary options
 |set askattach
 |set askcc
 |set autocollapse
 |set autothread
 |set emptystart
 |set junkdb=~/.junkdb

We do not have junk anymore.  Instead we offer hooks for external
programs, where the database can be used by multiple programs.
I use bogofilter for several years, it works just fine.

 |# set ssl-v2-allow
 |# set v15-compat
 |# set tls-verify=strict
 |
 |# String Options
 |set imap-keepalive=240
 |set imap-list-depth=5
 |
 |# Reading HTML mail
 |set pipe-text/html="lynx -dump -force_html -stdin"
 |
 |# Address Book
 |alias   test   [email protected]

Ok i have not verified it works, my own accounts are all using the
syntax of v14.10 already, but despite this i do not see why the
above should not work.  I mean, i would outsource my credentials,
i have them in an encrypted .netrc-style file, for example.

It seems Gmail will not allow the above plain authentication
starting in Summer next year, or so.  Then OAUTHBEARER / XOAUTH2
has to be used instead.  v14.9.15 can, .16 offers more hints of
refreshing the authentication token without external shell
commands, i am thinking about implementing the entire token update
mechanism for v14.10.  So the above configuration will again need
tweaks next year.

Hope this helps, i will try out and check whether and why your old
values do not seem to work anymore tomorrow.
Is your TLS configuration up-to-date?  Try setting "verbose" and
/ or debug, this often reveals a culprit.

Ciao and good night from Germany, Predrag,

 --End of <20191229225900.teyf_q4kf%[email protected]>

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to