Re: Unexplained mutt error

2022-02-20 Thread Hokan
Replying to the sender seems to be the default behavior for the list.

Perhaps the list owner could set the "Reply-to" header to help with this.


On Sun, Feb 20, 2022 at 10:37:22AM -0800, Kevin J. McCarthy wrote:
> Please don't reply to me personally, it's poor etiquette.

-- 
Hokan
Bicyclist
Sysadmin


Re: muttrc file for aol.com email?

2021-12-19 Thread Hokan
On Sun, Dec 19, 2021 at 07:54:47PM -0500, D.J.J. Ring, Jr. wrote:
> 
> I'm anticipating the big changes with gmail that will break mutt.

Wot?

You mean the optional "allowlisted IMAP clients"?  Do you expect your
GSuite admins will restrict clients and not include Mutt?

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: oauth2 with GMail?

2021-09-26 Thread Hokan
On Mon, Sep 27, 2021 at 12:30:22AM -, Grant Edwards wrote:
> On 2021-09-26, Hokan  wrote:
> > On Sun, Sep 26, 2021 at 09:03:39PM -, Grant Edwards wrote:
> >> 
> >> What did you provide for your application's URLs when you create the
> >> application for use with mutt?
> >
> > It looks like I didn't enter anything for App domain or for Authorized
> > domain.  I did this several years ago so maybe requirements have changed?
> 
> I was asking about the application's "support URL" and "privacy policy
> URL". Those were the ones that tripped me up. Somebody suggested using
> a 'localhost' URL, but I haven't tried it.

Aren't those under "App domain"?

Anyway, I haven't looked at this stuff since I set it up several years
ago so I guess I can't help, except to say it can (could?) be done
because I did it ... somehow.

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: oauth2 with GMail?

2021-09-26 Thread Hokan
On Sun, Sep 26, 2021 at 09:03:39PM -, Grant Edwards wrote:
> 
> What did you provide for your application's URLs when you create the
> application for use with mutt?

It looks like I didn't enter anything for App domain or for Authorized
domain.  I did this several years ago so maybe requirements have changed?

I note that under "Domain verification" it says:
Verification Status
Verification not required

Your consent screen is being shown, but your app has not been
reviewed so your users may not see all of your information,
and you will not be able to request certain OAuth scopes.

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: oauth2 with GMail?

2021-09-26 Thread Hokan
Don't app-specific password act like second passwords and give full
access to your Google account (not just mail)?  If so the granularity of
oauth access would make it the better choice.

While you may need a GSuite (or whatever they call it now) account to
create the project, once created it can be used outside that domain,
including for a regular gmail account.  I created one and use it for
regular Gmail and for accounts across half a dozen Gsuite domains
(school, work, nonprofit, personal, etc.)  This email is being sent
from Mutt using Oauth2.


On Sun, Sep 26, 2021 at 07:05:41PM -, Grant Edwards wrote:
> On 2021-09-26, D.J.J. Ring, Jr.  wrote:
> 
> Yes, I know how app-specific passwords work.
> 
> That's different than oauth2. I was asking about oauth2. Other mutt
> users are using it, as are msmtp users, and I was trying to figure out
> how they convinced Google to generate oauth2 credentials for them
> without having their own domains.


signature.asc
Description: PGP signature


Re: Binding Space to select-entry gives Key is not bound.

2021-09-18 Thread Hokan
Hello

I don't have index bound to any key and space selects the entry the
cursor is on so maybe what you want is the default behavior?


On Sat, Sep 18, 2021 at 12:02:56PM -0700, li...@ifohancroft.com wrote:
> Hi,
> 
> I am trying to bind the space key to the `select-entry` function, but  
> then when I start mutt and hit the key, I get 'Key is not bound. Press  
> '?' for help.
> 
> I have this in my muttrc:
> 
> bind index  select-entry
> 
> When I start mutt and hit '?' in the listing there, I see:
> 
> ' select-entry select the current entry'
> 
> So it is clearly bound.
> 
> To make sure my key actually sends space, I execute the `what-key`  
> function, press the key and I get:
> 
> Char = , Octal = 40, Decimal = 32
> 
> To test my binding, I tested binding space to what-key using:
> 
> bind index  what-key
> 
> Then I start mutt, hit Space and indeed what-key gets executed. Also  
> the help screen shows it being bound to what-key.
> 
> I have also tried to bind it to select-entry, writing the key as  
>  instead of  and the same thing happens.
> 
> Am I doing something wrong or is this perhaps a weird bug?
> 
> Here is my muttrc:
> 
> https://pastebin.com/5eBp4N1j
> 
> Here is my activate-sidebar config:
> 
> https://pastebin.com/pjPckhTh
> 
> Here is my deactivate-sidebar config:
> 
> https://pastebin.com/mzk9Rn4B
> 
> Best Regards,
> IFo Hancroft
> 

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: Moving from mutt 1.5 to 1.13.2

2021-06-03 Thread Hokan
Mutt is at version 2.0.7.  I don't know what you might be seeing that is 1.13.2.

I am not familiar with davmail but perhaps the trouble is there; maybe it can't 
get a secure connection to your Exchange server?


On Thu, Jun 03, 2021 at 11:29:08AM -0400, Andrew D. Arenson wrote:
>   On a RHEL6 box, using mutt 1.5, I got mutt to work w/ davmail, enabling 
> me to get email from my work Office365 account. 
> 
>   I'm transitioning to Ubuntu 20.04, which provides mutt 1.13.2 and have 
> run into a problem that I'd love to get advice on. When I start mutt I get an 
> error: "Encrypted connection unavailable". When I attempt to send an email I 
> get "Error sending message, child exited 127 (Exec error.)."
> 
>   I'm not sure where to start with either of these errors or whether or 
> not they are related to each other.
> 
>   My .muttrc includes:
> 
> set spoolfile="{aarenson\@iu.edu@localhost:1143}INBOX"
> set imap_pass="REDACTED"
> set imap_keepalive = 10
> set certificate_file=~/.mutt/certificates
> source ~/.mutt/smime.rc
> set smime_sign_as=ab2ec3ec.0
> 
>   Looking at the davmail log, on the working, RHEL workstation I see:
> 
> ... davmail  - Connection from /127.0.0.1 on port 1143
> ... davmail.connection  - CONNECT - 127.0.0.1:38394
> ... davmail.exchange.ExchangeSession  - Test configuration status: 401
> ... davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] 
> IMAP4rev1 DavMail 5.5.1-3299 server ready
> ... davmail  - < a AUTHENTICATE LOGIN
> etc.
> 
>   On the not working, Ubuntu workstation the first four lines are the 
> same, but then:
> 
> ... davmail - < a STARTTLS
> ... davmail - > a BAD command and authentication required
> 
>   I tried forcing STARTTLS to 'no' with:
> 
> set ssl_starttls=no
> 
>   ... but that had no effect.
> 
>   Any ideas on where to look next?
 
-- 
Hokan
Bicyclist
Sysadmin


Re: Mutt Gmail config

2021-03-08 Thread Hokan
Gmail can be a bit complicated.  There's more than one way to do it...

None of the steps you mention have anything to do with Gmail.  The ones
addressing $MAIL will do nothing useful.  The ones that talk about cache
might, for some people, be helpful but have nothing to do with Gmail
specifically.

I'm using OAuth for authentication.  It's fiddly to get set up but
operation is simple.  Without OAuth you have to use "less secure" or
"app" passwords, and both have sufficient security concerns that I think
using OAuth is worth the initial hassle.  Also, if you have a free Gmail
account, you probably can't use "less secure" passwords.

This isn't the guide I used but it seems like it'd work:
https://luxing.im/mutt-integration-with-gmail-using-oauth/

I have expurgated my main startup script and the two base muttrc file
that I use for Gmail and put them here:

https://www.hokan.org/MUTT-GMAIL/

- gmail-generic is the shell script I use to start mutt.
  The script helps me accommodate having around two dozen Gmail
  accounts (one free and the rest Google Workspace accounts).
  Note that the "passwords", the refresh tokens, are stored in and
  supplied by LastPass.

- muttrc-generic contains all the Gmail-specific mutt config options.
  Because of the script some of the muttrc variables are set from shell
  variables.

- muttrc-included-base contains mutt config stuff for all my accounts,
  not just the Gmail ones.


On Mon, Mar 08, 2021 at 02:14:48PM -0800, M.R.P. zensky wrote:
> Hello running mutt on ubuntu I am wanting to set up mutt to work with gmail. 
> I have two instructional for doing this butt their instructions differ. 
> One  says to enter   sudo touch $MAIL
> sudo chmod 660 $MAIL
>  sudo chown ???whom???:mail $MAIL
> 
> The other says to do the following - mkdir -p~/mutt/cache/headers
>  Mkdir 
> ~/.mutt/cache/bodies
>  Touch 
> ~/.mutt/certificates.
> Which config should I use  or if anyone has an alternate cleaner way to 
> configure mutt with gmail let me know.

-- 
Hokan
Bicyclist


signature.asc
Description: PGP signature


Re: email thread lines

2021-02-27 Thread Hokan
I don't know anything about neomutt, but maybe this will work:

set sort=threads


On Sat, Feb 27, 2021 at 04:10:06PM -0500, Rob Pyott wrote:
> Hello, I recently set up neomutt with Gmail.  My .muttrc is quite simple 
> (below).  I cannot see email threads though.  How does one turn on this 
> feature?  Thankyou!  Rob 
> 
> set from = "arpy...@gmail.com"
> set realname = "Rob"
> 
> # IMAP settings
> set imap_user = "arpy...@gmail.com"
> set imap_pass = x
> 
> 
> set sendmail = "/usr/local/bin/msmtp -a gmail"
> 
> set folder = "imaps://imap.gmail.com:993"
> set spoolfile = "+INBOX"
> set postponed = "+[Gmail]/Drafts"
> # set record = "+[Gmail]/Sent"
> # set trash = "+[Gmail]/Trash"
> set header_cache = "/Users/albertpyott/.mutt/cache/headers"
> set message_cachedir = "/Users/albertpyott/.mutt/cache/bodies"
> 
> set mbox_type = Maildir

-- 
Hokan
Bicyclist
Sysadmin


Re: mutt seems laggy to resume on v.2.x

2020-11-25 Thread Hokan
IIRC I just went with the ports/mail/mutt defaults.

I selected ispell because I'm more used to the ispell interface.
Now-a-days it's all aspell under the covers.


On Wed, Nov 25, 2020 at 10:19:57PM +, tech-lists wrote:
> Hello,
> 
> On Wed, Nov 25, 2020 at 09:59:30AM -0600, Hokan wrote:
> 
> >I am running a month-old FreeBSD-CURRENT on an RPI-4 (8GB) and could not 
> >replicate the problem.
> 
> thanks for posting yr config.
> 
> Your mutt is compiled just slightly differently:
> 
> >hcache backend: Berkeley DB 5.3.28: (September  9, 2013)
> 
> Is there a reason why you're using this hcache backend?
> 
> different configure options: '--disable-autocrypt' '--without-sqlite3' 
> '--with-bdb=/usr/local' '--without-tokyocabinet' 
> 
> Compile options:
> >ISPELL="/usr/local/bin/ispell"
> 
> I'm going to try recompiling with options as you've set them.
> Might try kyotocabinet too
 
-- 
Hokan
Bicyclist
Sysadmin


Re: mutt seems laggy to resume on v.2.x

2020-11-25 Thread Hokan
le-pop' '--enable-imap' 
> '--enable-compressed' '--enable-sidebar' '--enable-autocrypt' 
> '--with-sqlite3=/usr/local' '--enable-debug' '--disable-flock' 
> '--enable-gpgme' '--without-gss' '--without-bdb' '--without-kyotocabinet' 
> '--enable-hcache' '--without-qdbm' '--without-gdbm' 
> '--with-tokyocabinet=/usr/local' '--with-libiconv-prefix=/usr/local' 
> '--with-idn2=/usr/local' '--enable-locales-fix' '--enable-nls' 
> '--with-sasl=/usr/local' '--enable-smtp' '--prefix=/usr/local' 
> '--localstatedir=/var' '--mandir=/usr/local/man' '--disable-silent-rules' 
> '--infodir=/usr/local/share/info/' '--build=aarch64-portbld-freebsd13.0' 
> 'build_alias=aarch64-portbld-freebsd13.0' 'CC=cc' 'CFLAGS=-O2 -pipe  
> -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS=  
> -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CPP=cpp'
> 
> Compilation CFLAGS: -Wall -pedantic -Wno-long-long -O2 -pipe  
> -fstack-protector-strong -fno-strict-aliasing
> 
> Compile options:
> -DOMAIN
> +DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  -USE_FCNTL  -USE_FLOCK 
>   
> +USE_POP  +USE_IMAP  +USE_SMTP  
> +USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  -USE_GSS  +HAVE_GETADDRINFO  
> +HAVE_REGCOMP  -USE_GNU_REGEX  
> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  +HAVE_FUTIMENS  
> +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  
> +CRYPT_BACKEND_GPGME  
> -EXACT_ADDRESS  -SUN_ATTACHMENT  
> +ENABLE_NLS  +LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
> +HAVE_LANGINFO_YESEXPR  
> +HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_LIBIDN2  +HAVE_GETSID  
> +USE_HCACHE  
> +USE_SIDEBAR  +USE_COMPRESSED  -USE_INOTIFY  
> -ISPELL
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/local/share/mutt"
> SYSCONFDIR="/usr/local/etc"
> EXECSHELL="/bin/sh"
> -MIXMASTER
> 
> To contact the developers, please mail to .
> To report a bug, please contact the Mutt maintainers via gitlab:
>  https://gitlab.com/muttmua/mutt/issues
> 
>  patch-1.5.0.ats.date_conditional.1
>  patch-1.5.6.cb.reverse_reply.2
>  patch-1.5.7.ust.maildir-mtime.2
>  patch-1.5.4.cd.ifdef.1
>  vvv.quote
>  vvv.initials
> 
> thanks,
 
-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: imap_pass == smtp_pass ?

2020-11-19 Thread Hokan
> set smtp_pass="$imap_pass"

This is the core of what you need however $imap_pass gets filled in (even 
interactively).

-- 
Hokan
Bicyclist
Sysadmin


Re: mutt 2.0.0 released

2020-11-07 Thread Hokan
Cool!

Looking at the release notes I wonder what is the difference between
oauthbearer and xoauth2.

I have oauth working with Gmail using oauthbearer.  One motivation for
switching, if xoauth2 also works with Gmail, is that the python script
supporting oauthbearer is python2 (deprecated) and I don't have the
python chops to upgrade the script.


On Sat, Nov 07, 2020 at 01:46:16PM -0800, Kevin J. McCarthy wrote:
> 
> <http://www.mutt.org/relnotes/2.0/>

-- 
Hokan
Bicyclist
Sysadmin


Re: simple formatting possibilities

2020-08-27 Thread Hokan
I looked at this message in Thunderbird and the columns aligned just
fine.  I checked the Thunderbird config and there is a checkbox for
"Use fixed width font for plain text messages"

Similarly, Outlook seems to display plain-text messages with a fixed-
width font, but I'm not really an Outlook user so I don't know where
that's configured.

Gmail, on the other hand, seems to use variable fonts.  I found an
option to default to fixed font but the columns in the quoted message
still didn't line up.  I guess that option is for composing messages?

I suppose most people use Gmail and other web-based email now-a-days
and maybe the others are similarly poorly behaved.


> > It would be nice to be able to do it in 2 columns, like:
> > 
> >  Table 1 Table 1
> >   N: Geo Washington (host)N: Geo Washington (host)
> >   E: John Adams   E: James Monroe
> >   S: Tom JeffersonS: J.Q. Adams
> >   W: James MadisonW: Andrew Jackson
> > 
> > 
> > You viewing it in mutt inside a terminal window probably see two
> > nicely aligned columns.  But readers using thunderbird, outlook,
> > etc. would not because of the proportional spacing.

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: mutt + msmtp with Oauth2 Was [Re: IMAP authentication in one domain (my institution) and redirect to Gmail]

2020-08-13 Thread Hokan
My mistake: bang-path is a term for old-style mail routing.
The term I should have used is "shebang".  It refers to the "#!"
characters at the beginning of a script and that tells the script what
program to use to interpret the script.  In your case that's /bin/bash.



On Thu, Aug 13, 2020 at 06:20:42PM -0300, Marcelo Laia wrote:
> Hi Hokan,
> 
> On 13/08/20 at 03:01, Hokan wrote:
> > Does /home/myuser/.oauth2token have a bang-path in it?
> 
> I looked inside the oauth2token and there isn't any mention to
> python3.7.
> 
> > What does that
> > path point to?  Maybe something like :
> 
> In the beginner of file there is: 
> 
> #!/bin/bash
> 
> This is the first time I read "bang-path". I looked in the Google and
> not understood it very well. Sorry. I will do my best to understand it.
> 
 
-- 
Hokan
Bicyclist
Sysadmin


Re: IMAP authentication in one domain (my institution) and redirect to Gmail

2020-08-13 Thread Hokan
Does /home/myuser/.oauth2token have a bang-path in it? What does that
path point to?  Maybe something like :

#!/usr/local/bin/python3.7

Is whatever it points to executable?


On Tue, Aug 11, 2020 at 10:27:42PM -0300, Marcelo Laia wrote:
> On 11/08/20 at 08:14, Hokan wrote:
> > 
> > Somebody wrote a blog post on how to do it:
> > 
> > https://luxing.im/mutt-integration-with-gmail-using-oauth/
> > 
> 
> Hi,
> 
> Thank you so much! It save my day. With your post, I could found more
> information, because I use mutt+offlineimap+msmtp
> 
> Offlineimap is run out of the box with OAuth2! A beautiful!
> 
> But, msmtp is so hard to configure!
> 
> I found this:
> 
> https://github.com/tenllado/dotfiles/tree/master/config/msmtp
> 
> I set up the system's keyring like this:
> 
> secret-tool store --label=msmtp-oauth2 client-id client-id
> Password:
> 
> I copy and paste the "OAuth client ID" in the password prompt above.
> 
> secret-tool store --label=msmtp-oauth2 client-secret client-secret
> Password:
> 
> I copy and paste the "Secret" in the password prompt above.
> 
> secret-tool store --label=msmtp-oauth2 refresh refresh
> Password:
> 
> I copy and paste the "Refresh Token" in the password prompt above.
> 
> Is this OK?
> 
> My msmtprc is like this:
> 
> account YZYZYZ
> host smtp.gmail.com
> from mylo...@yzyzyz.edu.br
> port 587
> protocol smtp
> tls on
> tls_trust_file /etc/ssl/certs/ca-certificates.crt
> auth oauthbearer
> user mylo...@yzyzyz.edu.br
> passwordeval /home/myuser/.oauth2token mylo...@yzyzyz.edu.br YZYZYZ
> 
> However, when I try to send a message, I got:
> 
> sh: 1: /home/myuser/.oauth2token: Permission denied
> msmtp: was not possible to read the stdout from "/home/myuser/.oauth2token 
> mylo...@yzyzyz.edu.br YZYZYZ"
> 
> Please, someone have a clue to solve this?
> 
> Thank you!
> 
 
-- 
Hokan
Bicyclist
Sysadmin


Re: IMAP authentication in one domain (my institution) and redirect to Gmail

2020-08-11 Thread Hokan
I use Mutt with Gmail and it works well, but was fiddly to set up.

Somebody wrote a blog post on how to do it:

https://luxing.im/mutt-integration-with-gmail-using-oauth/


On Tue, Aug 11, 2020 at 10:01:43AM -0300, Marcelo Laia wrote:
> Hi,
> 
> My Institution migrate the e-mail server to G-Suite Gmail.
> 
> So, the IMAP connection to institutional e-mail server go away.
> 
> Now, we access Gmail at https://mail.google.com and enter our full
> login, like this:
> 
> myloginn...@myinstitutiondomain.edu.br
> 
> and click next. So, it's redirected to a login domain, like this:
> 
> https://x.myinstitutiondomain.edu.br/.php//999pass.php?AuthState=bb523%3Ahttps%3A%2F%2Fx.myinstitutiondomain.edu.br%2Fsaml2%2Fidp%2FSSOS.php%3Fsid%3Dgoogle.com%252Fa%252Fmyinstitutiondomain.edu.br%26cookieTime%3XX%26RelayState%3Dhttps%253A%252F%252Faccounts.google.com%252FCheckCookie%253Fcontinue%253Dhttps%25253A%25252F%25252Fmail.google.com%25252Fmail%25252F%2526service%253Dmail%2526ss%253D1%2526scc%253D1%2526rm%253Dfalse%2526osid%253D1%2526ltmpl%253Ddefaultzzz
> 
> We need to enter our login name again and our password, in a form, like
> this:
> 
> myloginname (field 1)
> mypassword  (field 2)
> 
> and click next.
> 
> There are some way to connect offlineimap and msmtp, and so on mutt, in
> this authentication way?
 
-- 
Hokan
Bicyclist
Sysadmin


Information: Mutt/Gmail/Oauth2 Failure

2020-07-14 Thread Hokan
Hello Mutt/Gmail/Oauth2 Users,

I had a problem reading my Google mail and wanted to let you know what
happened in case any other oauth2.py users have a similar problem.

I have a number of Gmail user accounts for which I use Mutt with oauth2
to read mail and, today, one stopped working.

I started mutt and got this on the status line:
--
mutt_account_getoauthbearer: Command returned empty string
--

My Mutt config runs the oauth2.py script to get the access token.  I ran
oauth2.py manually and got this:

--
Traceback (most recent call last):
  File "/home/hokan/bin/oauth2.py", line 347, in 
main(sys.argv)
  File "/home/hokan/bin/oauth2.py", line 311, in main
print 'Access Token: %s' % response['access_token']
KeyError: 'access_token'
--

After much wailing and gnashing of teeth, I looked at my Google account
to see what had access to my data and didn't see Mutt listed.  Perhaps
after a year-and-a-half my access expired?

I followed the process to get a new Refresh Token, replaced that in my
Mutt config and I could read mail again.

So, this turned out not to be a problem with Mutt, but with my Google
account.

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: Simple muttrc file for accessing Gmail imap

2019-09-22 Thread Hokan
You'll also need to set "less secure password" or create an "app password".

Or set up Oauth, but that'll take a bit of work.


On Sun, Sep 22, 2019 at 07:11:10PM -0400, D.J.J. Ring, Jr. wrote:
> I've been trying to help someone set up mutt for gmail imap using
> mutt's internal support for IMAP.
> 
> I have been going nuts.  Something's wrong but I cannot figure out why it 
> fails.
> 
> I just remembered that gmail has to have IMAP switched ON by using the
> gmail settings online.:
> 
> For the Gmail IMAP settings to work in your email client, IMAP access
> must be enabled in Gmail online.
> 
> https://www.lifewire.com/how-to-enable-gmail-via-imap-1170856
> 
> HOW TO Activate IMAP in Gmail
> 
> To access a Gmail account in your email program or mobile device via
> the IMAP protocol, activate IMAP in Gmail.
> 
> Open Gmail in a web browser.
> 
> Choose Settings (the gear icon).
> 
> Select Settings.
> 
> Select the Forwarding and POP/IMAP tab.
> 
> In the IMAP access section, select Enable IMAP.
> 
> Leave the other settings on the default selections.
> 
> Select Save Changes.
> 
> That's it.
> 
> Duh!  It's been so long since I enabled that setting, I forgot it had
> to be done.
> 
> Regards,
> 
> David
> 
> On Sat, Aug 24, 2019 at 4:06 PM Jude DaShiell  wrote:
> >
> > Yes, those macros work and do so silently.  Thanks for the macros and
> > the idea to bind stuff to the comma key.  I hadn't thought of that one
> > before.
> >
> > On Sat, 24 Aug 2019, Mark Frank wrote:
> >
> > > Date: Sat, 24 Aug 2019 14:00:27
> > > From: Mark Frank 
> > > To: mutt-users@mutt.org
> > > Subject: Re: Simple muttrc file for accessing Gmail imap
> > >
> > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell  wrote:
> > >
> > > > mutt is set up to download pop3 but has no keyboard shortcut to download
> > > > imap or didn't the last time I went through its documentation.
> > > >
> > > >
> > > I've had this in my muttrc for years.  Don't  if if any of these values 
> > > are
> > > optimum as I don't use mutt much anymore but it does work.
> > >
> > >
> > > $ grep imap ./.mutt/muttrc | egrep -v ^#
> > > set spoolfile=imaps://imap.gmail.com/INBOX
> > > set folder=imaps://imap.gmail.com/
> > > set imap_keepalive = 900
> > > set imap_user='m...@markanderika.com'
> > > set imap_pass=x
> > > set imap_keepalive=300
> > > unset imap_passive
> > > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed
> > > macro index ,g  "force retrieval of mail from IMAP 
> > > server"
> > > macro pager ,g  "force retrieval of mail from IMAP 
> > > server"
> > >
> >
> > --
> >

-- 
Hokan
Bicyclist
Sysadmin


Re: Confirm on new mailbox creation

2019-07-03 Thread Hokan
Thank you!

On Wed, Jul 03, 2019 at 12:05:20PM -0700, Kevin J. McCarthy wrote:
> On Wed, Jul 03, 2019 at 01:52:17PM -0500, Hokan wrote:
> >How can I suppress the mailbox creation prompt?
> 
> Try 'unset confirmcreate'
 
-- 
Hokan
Bicyclist
Sysadmin


Confirm on new mailbox creation

2019-07-03 Thread Hokan
Hello Mutt users,

I'm getting a mailbox creation prompt that I don't want.

I have a couple of muttrc lines that help me auto-organize my sent and
deleted mail:

set record="+sent-mutt/`date +%Y/%Y-%m`-sent-mail"
set trash="+deleted-mutt/`date +%Y/%Y-%m`-deleted-mail"

These store my sent or deleted mail in time-stamped mailboxes based on
month and year.

When a new month comes and Mutt wants to save a message in a new
mailbox I get a prompt asking me to confirm I want the mailbox created,
like this:
Create sent-mutt/2019/2019-07-sent-mail? ([yes]/no):

How can I suppress the mailbox creation prompt?

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: "mailbox externally modified. flags may be wrong"

2019-06-05 Thread Hokan
On Wed, Jun 05, 2019 at 10:18:10AM -0400, Ben Gold wrote:
>Mutt was working for me (to check my gmail account) for about a
>month.?  Now it seems like whenever I get an email, instead of showing
>an unread message I just get this error:
>"mailbox externally modified. flags may be wrong"
>I haven't changed anything (that I'm aware of) in mutt or in my email
>habits.
>What does this error mean?

When it happens to me it's because I've been using another MUA at the
same time I'm using mutt -- the Gmail web interface, for example.

-- 
Hokan
Bicyclist
Sysadmin


X-Face: Header Interpretation

2019-05-29 Thread Hokan
Hello Mutters,

For kicks, I thought I'd try making the X-Face header work and followed
the instructions here:
https://gitlab.com/muttmua/mutt/wikis/MuttGuide/XFace

I installed the needed programs from the FreeBSD Ports system.

I was able to create a header, but not view the image it contained.  I
got this message from icontopbm:
"invalid sun icon file header: only 2 out of required 5 fields present".

Looking at the code for icontopbm it appears that we need more header
fields than is provided by the view-x-face script referred to by the Wiki
page.  So I replaced this line in the script:

| { echo '/* Width=48, Height=48 */'; $UNCOMPFACE; } \

with this:

| { echo '/* Width=48, Height=48, Depth=1, Format_version=1, 
Valid_bits_per_item=16 */'; $UNCOMPFACE; } \

and all worked.

Should I submit a bug report to suggest that the Mutt Wiki page be
updated to suggest this modification to the script?

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: Can I do this (should I do this) with Mutt?

2019-05-22 Thread Hokan
1. I have more than two dozen accounts, mostly Google.  I don't deal
with them in Mutt, but with a script that calls Mutt and provides
necessary info for each account.  Makes my Mutt config simpler, I think.

The command "mutt" reads my work (non Google) email.

I have one script for all my gmail accounts and link to that script with
the name of each account so I can read only that one if I wish.  My
command "gmail-hokan.ho...@gmail.com" permits me to read email for the
account I'm using to reply here.

My command "gmail-generic" sequentially starts Mutt for each of 5
accounts I read often.

My command "gmail-all" does the obvious.


3. set mail_check=60


4. For HTML I have this in my .mailcap:
text/html;lynx -dump %s;copiousoutput;nametemplate=%s.html ; print = 
chromiumurl %s;


On Wed, May 22, 2019 at 03:03:42PM +, John Long wrote:
> Hi,
> 
> I've been a casual mutter for around 10 years. I have it working with
> PGP, S/MIME, all that I need...for one account. The only thing is, I am
> increasingly dissatisfied with the direction GUI clients are going. I
> had one I have been using for years and it just keeps getting more and
> more features, incompatible changes, and bugs. Several of them
> encrypted my account credentials so I couldn't retrieve them. At one
> point I downloaded the source for it and put printf statements so I
> could recover my credentials to use with another client. I like mutt's
> text config.
> 
> I have around 10 email accounts I use actively for various mailing
> lists, work, personal etc. 
> 
> 1. Is it reasonable to use Mutt with many email accounts? I know you
> probably can, but is it reasonable as in, is it manageable, is the
> performance good enough on a midrange box. Usability stuff, like will
> mutt automagically respond using the correct account (the account the
> email I'm replying to was received by), is it clear when you compose
> which account you're using. Etc.
> 
> 2. I have around 100,000 emails right now between all my accounts. I
> have one pop account because my ISP mail server doesn't support IMAP.
> I use IMAP with all the rest. I like having the email on my box(es)
> rather than leaving it on servers. Of the mailbox flavors, which is
> appropriate for this volume of email?...and also for the let's say 200
> a day I get between the various mailing lists I'm on.
> 
> 3. I seem to remember that mutt didn't poll automagically for pop3 or
> IMAP or both. Is that still true? Is there a way to get mutt to check
> mail every 10 minutes, 15, etc. without middleware? I don't want to get
> into fetchmail, getmail etc. I want the client to do it all.
> 
> 4. For the idiots who persist in sending HTML email, even my current
> GUI client borks, sometimes badly, and the email is unreadable. Is
> there any tolerable HTML support in Mutt?

-- 
Hokan
Bicyclist
Sysadmin


Re: Gmail + oauth2.py

2019-01-17 Thread Hokan
Found it!

It turns out that turning on TFA invalidates previous logins and tokens.

I requested a new token and all is working.


On Thu, Jan 17, 2019 at 02:01:46PM -0600, Hokan wrote:
> I've got mutt working with oauth2.py for gmail.  I can send and read mail.
> But ... I turned on two-factor authentication and now the oauth2.py script
> fails.
> 
> Have you gotten mutt to work with the oauth2.py script with TFA turned on?
> How?

-- 
Hokan
Bicyclist
Sysadmin


Gmail + oauth2.py

2019-01-17 Thread Hokan
I've got mutt working with oauth2.py for gmail.  I can send and read mail.
But ... I turned on two-factor authentication and now the oauth2.py script
fails.

Have you gotten mutt to work with the oauth2.py script with TFA turned on?
How?


Re: SMTP error from remote mail server after RCPT TO:

2018-10-26 Thread Hokan
This rejection is the result of the "percent hack" implimented on
sendmail, postfix and, perhaps, other mail servers.

Nothing to do with Mutt.


On Fri, Oct 26, 2018 at 08:23:22PM +0200, Matthias Apitz wrote:
> 
> Hello,
> 
> This is perhaps not a problem with mutt itself, but maybe some expert can
> lend me a light.
> 
> I'm member of a group and as this I do receive mails sent by others to the 
> addr
> jw%leserini-...@gmx.de. But when I reply, the mail gets rejected, see
> below. How is this possible that the originator can send this mail to 
> jw%leserini-...@gmx.de
> but I can not?
> 
> Thanks
> 
>   matthias
> 
> - Forwarded message from Mail Delivery System 
>  -
> 
> Date: Fri, 26 Oct 2018 14:51:58 +0200
> From: Mail Delivery System 
> To: g...@unixarea.de
> Subject: Mail delivery failed: returning message to sender
> 
> This message was created automatically by mail delivery software.
> 
> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
> 
>   jw%leserini-...@gmx.de
> host 172.16.28.206 [172.16.28.206]
> SMTP error from remote mail server after RCPT TO::
> 550 restricted characters in address
> 
> Reporting-MTA: dns; sh4-5.1blu.de
> 
> Action: failed
> Final-Recipient: rfc822;jw%leserini-...@gmx.de
> Status: 5.0.0
> Remote-MTA: dns; 172.16.28.206
> Diagnostic-Code: smtp; 550 restricted characters in address
> 
> Date: Fri, 26 Oct 2018 14:51:57 +0200
> From: Matthias Apitz 
> To: ...
> Cc: jw%leserini-...@gmx.de
> Subject: Re: Literaturmesse N??rnberg
> 
> 
> Hallo,
> 
> wie ist denn die R??ckfahrt geplant. Wir k??nnen doch nur alle zusammen
> mit dem Bayernticket fahren...
> 
> Gruss
> 
>   matthias
> 
 
-- 
Hokan
Bicyclist
Sysadmin


-z option not working for imap?

2018-07-17 Thread Hokan
Hello Mutt Users,

the -z option (quit if no messages) works for local mailboxes, but I
can't get it to work with imap mailboxes.  Am I missing something, or
does it just not work with imap?

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: support of two factor authentication?

2018-06-12 Thread Hokan
I use LastPass CLI to present my password.  I have LastPass protected with 2FA.

My .muttrc contains a line like this:
set imap_pass="`/usr/local/bin/lpass show --password myname@mydomain || sleep 
1`"
and
set smtp_pass=$imap_pass

and that works for me.


-- 
Hokan
Bicyclist
Sysadmin


Re: mutt.org web

2018-04-06 Thread Hokan
http://mutt.org/ looks fine to me.  On the other hand,
http://www.mutt.org/ shows the page you described.


On Fri, Apr 06, 2018 at 03:32:35PM +0200, mimosinnet wrote:
> Hi all,
> 
> Information on "Mulgara Semantic Store" appears in mutt.org. I have had 
> a look at mutt repository [1] and verified that the mutt home page is  
> http://www.mutt.org/. I assume this is something temporal.
> 
> Cheers!
> 
> [1] https://gitlab.com/muttmua/mutt

-- 
Hokan
Bicyclist
Sysadmin


signature.asc
Description: PGP signature


Re: Trash Folder Creation

2017-12-05 Thread Hokan
On Tue, Dec 05, 2017 at 12:37:13PM -0800, Kevin J. McCarthy wrote:
> On Tue, Dec 05, 2017 at 02:06:55PM -0600, Hokan wrote:
> > Is this new behaviour a bug?  If not, how can I automate creation of the
> > monthly trash folder?
> 
> It sounds like a bug.  The trash folder has gone through a few changes
> after being integrated into mutt.  It is still supposed to prompt for
> creation if the mailbox doesn't exist, and does so in my testing, but
> sounds like something is not working for you.
> 
> If possible, please capture a debug log at level 3, and open a ticket.
> I'll try to take a closer look.


Whoops -- I should have checked that I was running the latest before
complaining.

I switched from 1.9.0 to 1.9.1 and it's working now.

Thank you!

-- 
Hokan
Bicyclist
Sysadmin


Trash Folder Creation

2017-12-05 Thread Hokan
Hello Mutt Users,

My .muttrc file contains this line:

set trash="+deleted-mutt/`date +%Y/%Y-%m`-deleted-mail"

When I mark a message for deleting it is moved to an IMAP folder called
(for example) deleted-mutt/2017-12-deleted-mail .

Formerly, when I deleted the first email for a month, I was asked if I
wanted the folder created, but for the last few releases deleted emails
simply disappear if the trash folder does not already exist.

Is this new behaviour a bug?  If not, how can I automate creation of the
monthly trash folder?

-- 
Hokan
Bicyclist
Sysadmin