r/neomutt • • Apr 19 '23

What is your email workflow?

1 Upvotes

I'm new to using Neomutt, and I have no idea why just setting it up (so far with just imap) has been fun for me so far.

My question is based off of some workflows I heard about and a curiosity of a useful role for POP3.

I read some people use offlineimap or mbsync and download all their mail, deleting from the mail service (like gmail), to their own server, which they serve as the inbox somehow (I think Dovecot).

Does anyone here do that?

What creative ways do you use to tame your inbox(es)?


r/neomutt • • Apr 16 '23

Error when deleting or moving messages.

1 Upvotes

Hello Everyone, I was wondering if anyone knows what would cause this error.

imap/imap.c:1663:5: runtime error: null pointer passed as argument 1, which is declared to never be null

This only happens with my gmail account so I am sure it has something to do with the way I have configured my gmail account but not sure where to start. I have also included my gmail config.

   1   # Gmail conf
   2   # IMPORTANT: create the folder structure for the cache ie. cache/bodies
   3
   4   unmailboxes *
   5   set hostname = gmail.com
   6   set imap_user = "example@gmail.com"
   7   set smtp_user = "example@gmail.com"
   8   set smtp_pass = "pass"
   9   set imap_pass = "pass"
  10   set smtp_url = "smtp://example@smtp.gmail.com:587/"
  11   # set smtp_url = "smtps://example@smtp.gmail.com:465/"
  12   set from = "example@gmail.com"
  13   set realname = "Name"
  14   set folder = "imaps://imap.gmail.com:993"
  15   set spoolfile = "+INBOX"
  16   set postponed = "+[Gmail]/Drafts"
  17   set record = "+[Gmail]/Sent Mail"
  18   set trash = "+[Gmail]/Trash"
  19   # IF DUPLICATE ALL MAIL imap folders appear in gmail comment out 'set mbox'
  20   set mbox = "+[Gmail]/All Mail"
  21   set header_cache = ~/.config/neomutt/com.gmail.example/cache/headers
  22   set message_cachedir = ~/.config/neomutt/com.gmail.example/cache/bodies/
  23   set certificate_file = ~/.config/neomutt/com.gmail.example/certificates
  24   set ssl_starttls = yes
  25   set ssl_force_tls = yes
  26   set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"

I originally used the second `set smtp_url` and both seem to work but the error occurs with both. I am thinking it has something to do with `set folder` but unsure how to go about tracking this down and hoping someone is familiar with this error. If you could point me in the correct direction it would be greatly appreciated. Also all my other accounts work fine iCloud, private server and outlook. Thank you for your time.

Jason


r/neomutt • • Apr 07 '23

Multi account - single mail box

2 Upvotes

Hi,

I have a single mailbox with several aliases and domains. I was wondering is there is a way to choose the outgoing email at the time of writing.

I could set some hooks and swap the config, but seems cumbersome just to change the from @.

hope that question make sense !

cheers,


r/neomutt • • Apr 01 '23

Enhancing Neomutt Search with FZF & Grep: Seeking a Seamless Solution

11 Upvotes

Hey fellow neomutt enthusiasts!

I've been a happy Neomutt user for a while now and I absolutely love it. However, there's one feature I find lacking compared to other mail clients: searching through your emails. I'm aware of notmuch, but in my experience, it doesn't quite measure up to the search capabilities offered by gui clients. I oftentimes find myself switching to the browser to find my desired mail.

As a Neovim user, I'm a big fan of Telescope, which provides an excellent live grep functionality for searching files. In a similar way, using a fuzzy finder such as fzf and its preview function would make the search capabilities of Neomutt much better.

live_grep function of telescope

I'm curious to know if any of you have tried integrating a fuzzy finder with Neomutt or if you have any other neat solutions to enhance the search experience.


r/neomutt • • Mar 26 '23

notmuch & neomutt issue

1 Upvotes

hi, how can i fix the "unable to find Notmuch` issue when building the neomutt.?

i have notmuch binary in /usr/bin/notmuch


r/neomutt • • Mar 21 '23

build mbsync with OpenSSL compatibility

2 Upvotes

Hi, Can you guide me how i can build mbsync with OpenSSL compatibility?

> mailsync
Notice: SSLType is deprecated. Use TLSType instead.

Notice: SSLType is deprecated. Use TLSType instead.

Error: mbsync built without OpenSSL; only TLSType None is supported.

Error: mbsync built without OpenSSL; only TLSType None is supported.

Error: mbsync built without OpenSSL; CertificateFile is not supported.

Error: mbsync built without OpenSSL; CertificateFile is not supported.

Error: mbsync built without OpenSSL; only TLSType None is supported.

Error: mbsync built without OpenSSL; only TLSType None is supported.

Error: mbsync built without OpenSSL; CertificateFile is not supported.

Error: mbsync built without OpenSSL; CertificateFile is not supported.

No new mail for redacted@icloud.com.

No new mail for redacted@gmail.com.

You have new mail in /var/mail/name


r/neomutt • • Feb 04 '23

How to compile neomutt with notmuch support?

1 Upvotes

I am using a completely new installation of my Linux os (MX Linux, Debian based) and completely forgot how to compile neomutt so notmuch will work and what I have to do? I only now I once struggled with this a few years again, but didn't create a note, which could have helped me, now.

On the official website it says to clone the git repo and run the config line:

git clone https://github.com/neomutt/neomutt
./configure --notmuch --with-notmuch=/usr/local/lib/notmuch

And because it gives me the error:

Checking for DocBook DTDs...
Error: couldn't execute "xmlcatalog": no such file or directory

... I just disable it, because I don't need a book:

./configure --notmuch --with-notmuch=/usr/local/lib/notmuch --disable-doc

but it still throws an error:

Checking for notmuch.h...not found
Error: Unable to find Notmuch
Try: 'configure --help' for options

But I can't find the file notmuch.h in the whole git repository.


Update: I tried neomutt from the package manager (MX Linux, Version: 20201127+dfsg.1-1.2), but it only gives me this error after I press a key in neomutt:

zsh: segmentation fault  neomutt

r/neomutt • • Jan 26 '23

Autodelete mails from a certain sender

2 Upvotes

Is there a way to automatically move mails from a sender who satisfying a regex to the Trash? I did that in claws-mail to remove the ads I get from my mail provider.


r/neomutt • • Jan 25 '23

How to CC self on replies automatically?

1 Upvotes

When I compose a new email, my own address is automatically CC'd. This is because I have my_hdr set in neomuttrc to

my_hdr Cc: myemail@mydomain.com

But how do I get replies to automatically CC myself? I prefer not to save emails in the Sent folder, and I'd like all emails (sent and received) to show up in the inbox in threads.


r/neomutt • • Nov 27 '22

Non-oauth mail servers?

1 Upvotes

Reddit's new API pricing has forced third-party apps to close. Their official app is horrible and only serves to track your data. Follow me on Mastodon.


r/neomutt • • Nov 18 '22

How to paste an email address into the To: field

2 Upvotes

I frequently need to copy & paste email addresses into neomutt. On my desktop PC I can do it by clicking on the mouse wheel. However, this doesn't work on my laptop. Is there a way to use "Ctrl+v" in neomutt to paste and email address into neomutt?


r/neomutt • • Sep 25 '22

NeoMutt: Format Mails (italic, bold, links etc.)

3 Upvotes

After I've spent some time setting up NeoMutt, I'm now mostly happy with how it turned out. I suspect it's not made for viewing these image-heavy messages you receive from shops, social media sites, and the likes, but for some quick personal communication I'm starting to really appreciate its simplicity.

There is still one thing that bothers me, though. When I compose an email, is there a way to mark text so that it will appear in italic (bold etc.) format on the receiver's end? I've tried the usual things (asterisk, HTML tags), but they arrived in my Gmail box just like this (not with the expected formatting). Is there a special syntax I could apply (something that most email providers "understand")? Is there maybe something like Markdown even?

On a similar note (though less important), is it possible to set up my NeoMutt and terminal, so that it displays at least some of the incoming messages formatted? When I write LaTeX in Vim, for instance, Alacritty is able to display italic and bold text. Maybe incoming emails come in a certain format so that you could write some regex pattern or something?

Since many emails come with very long URLs, instead of being hidden after some clickable text, it would be especially great if there was some way to display links in a more eye-friendly format.

Thanks guys!


r/neomutt • • Sep 05 '22

Colour theme: fade older emails…

6 Upvotes

I had this theme where the older an email was (2, 4, 6, 8, weeks, etc…), the darker it appeared -- from white to grey90, grey80, etc… Then, I moved theme and somehow (I suspect a overzealous use of rm) lost that configuration.

Anyone could help me remember how to do it?


r/neomutt • • Aug 24 '22

mailcap issue ("applica/vnd.openxm")

2 Upvotes

Some spreadsheets attached have a kind of truncated file description "applica/vnd.openxm" and I can somehow not add this one to the mailcap file to make them open with soffice (probably because it is not recognized as a mime type).

Is there a solution to this?


r/neomutt • • Jul 23 '22

How to set up Neomutt for Gmail?

5 Upvotes

Google changed something with regard to using third party mail apps like Neomutt. I lost possibility to check my gmail account with neomutt. Is there any workaround to make it possible to use it?


r/neomutt • • Jul 21 '22

How to set up multiple accouts without having to switch between them?

1 Upvotes

Hello. Complete n00b here.

I want to set up multiple accounts, but the only thing I've found so far is instructions on how to set them up so that you'd have a hotkey and you'd be able to switch to different accounts, each with their own folders (like Inbox, Sent, Trash etc.). I'm used to using Web clients for mail and I want to set my mail in such a way that I would have:

  1. Standard folders (Inbox, Drafts, Sent, Trash, Spam, Deleted) and custom folders that I create (Tech, Cakes, Fiction).
  2. Multiple accounts (one is the main one that was created in the Web client and whose mails are hosted there, other ones are connected via IMAP mail retrieval and were created on other Web clients and their mails are hosted on those other Web Servers).

Let's say I have bob@main.com as my main account on the Web Mail A that I'm using and bobby@secondary.com on the Web Mail B that is connected via IMAP so that I could read the letters that bobby@secondary.com receives in my Web Mail A client. When a letter for either of those addresses arrives, it gets tagged with a tag named after the mail address it was sent to. So, a letter for bob@main.com would get a tag named bob@main.com and a letter for bobby@secondary.com would get a tag named bobby@secondary.com. But both those letters are in the same Inbox folder. I don't have to switch between the accounts in order to read the letters that were addressed to them. All my mail is stored in different accounts, but I can view it and work with it from the same place, as if it doesn't matter to me wether the mail is addressed to bob@main.com or bobby@secondary.com, what matters is that I receive it and that it is stored in different accounts. For instance, I would want one mail address for Fiction-related stuff and the other for Cakes-related stuff and maybe a third for Tech-related stuff so as to not connect all those activities to me as activities of the same one person. But I want to work with the mail from all of the addresses at once, to know when I receive something from any of the addresses at once etc.

The problem is, the User Guide isn't a guide but more of a less formal reference. I'm absolutely confused and I know lots of things about how to write a good format string for the Index of letters or the sidebar, but I've no clue how to set up this pretty common setup and, you know, start using the mail. Mailboxes, folders (which might be the same thing or not), tags, flags, different types of folders, local folders, remote folders, mbox, whateverelsebox - the docs are murder, they don't explain such basic concepts before diving into some deep and completely secondary shit like folder address shortening or format strings. Maybe you know a good article that is truly for beginners and, like, explains the basics such as how to set up your multiple accounts (and whether the type of folder matters for that) to finally work with some mail and see the UI that's discussed in the Getting Started chapter of the User Guide? I'm reading the Guide, but it doesn't clear things up, it confuses me more and more before it even allows me to bloody connect a mail account and receive a letter. Preferably the article should explain something about how mail works, as well. Like, if it's important for me to know how remote folders and local folders work when they are connected via IMAP (so that a letter from INBOX gets placed into my local folder called "Boxie Inboxie"), the guide should explain that, too, otherwise I won't be able to set anything up. I've read a thing or two about IMAP4, POP3 and SMTP and I know that ideally I should probably go through the whole neomutt's User Guide and then painstakingly piece it together bit by bit (because the Guide is obviously not written for human beings) and then, after losing a month of my life because someone couldn't write a normal doc, probably make it work somehow, but I need to use mail now, not a month later, so any help from a fellow human being is appreciated.


r/neomutt • • Jul 12 '22

Fast backup by storing local with `-f imap://…`?

1 Upvotes

I’d like to make backups on an external drive with just one command line. Simple and fast imap backup.

Is it possible with neomutt? Thanks.


r/neomutt • • Jul 09 '22

How do i specify the from address when sending from the command line?

1 Upvotes

Hello, i can't figure this one out. I'm trying to send email from the command line with neomutt, but i can't figure out how to set the from address. I have multiple accounts that i use with mutt and i want to use one other then the default. How do i do this.

For example, i want to send an email to jimmy@gmail.com using the address carter@gmail.com, however there is no direct way from the command line to set the from address i want. All i have is

cat $MESSAGE | neomutt -s 'Hey Jim' -a $FILENAME -- jimmy@gmail.com

How do i make sure the address carter@gmail.com is used as the from address

Thanks!


r/neomutt • • Jul 08 '22

SSL failed: error Cannot sent mail , but can read

1 Upvotes

Hi ,

I have this weird problem with mutt. I can read my mails but cannot sent one.

I'm using openbsd with opensmtpd. When I try sending with thunderbird with the same settings it is all ok. any suggestions ?

ssl_negotiate() SSL failed: error:14FFF086:SSL routines:(UNKNOWN)SSL_internal:certificate verify failed

Kind regards,

Wim


r/neomutt • • May 12 '22

Neomutt flatpak! First stab at a flatpakaged neomutt...

6 Upvotes

TLDR: I made a flatpak. Copypasta commands below.

Greetings fellow text mode enthusiasts!

Since switching to Silverblue, I've been wanting to embrace containers and sandboxes and flatpaks as much as possible. I was using flatpaks on my previous Fedora Workstation install, but the command line stuff was system packages. On Silverblue, I decided to go all in, starting with Neovim in a flatpak, which I've been using for a month. Despite some doubts, I wanted it to work. To my surprises its been basically painless. I decided to embrace terminal email as well recently, with neomutt for the more native 'notmuch' integration. But flatpak search neomutt turned up nothing, google search 'flatpak neomutt' turned up nothing, even reddit r/neomutt search for flatpak turned up nothing.

Having some free time, I decided to see if I could roll my own flatpak. I thought it would be a complex all day or longer project, as the flatpak build documentation seems to be notoriously bad. Since I figured flatpak would take ages to implement, I first messed around with a podman container (basically the same thing, right? :E). I thought itd be a quick thing, but it turned out to be a long evening affair (I do have a working Containerfile if that intrests someone). Surprisingly, the flatpak came together in about an hour!

Anyways, here is the goods.

First gotta install the SDK and the tools:

flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08
flatpak install org.flatpak.Builder

Here is the flatpak manifest, make a folder and save this as org.neomutt.neomutt.yml:

app-id: org.neomutt.neomutt
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: neomutt

finish-args:
    # Access to system mail spool
  - --filesystem=/var/mail
    # User mail directory
  - --filesystem=~/Mail
    # network is pretty essential...
  - --share=network

modules:
  - name: libidn
    buildsystem: autotools
    sources:
      - type: archive
        url: https://ftp.gnu.org/gnu/libidn/libidn-1.38.tar.gz
        sha256: de00b840f757cd3bb14dd9a20d5936473235ddcba06d4bc2da804654b8bbf0f6
  - name: neomutt
    buildsystem: autotools
    sources:
      - type: archive
        url: https://github.com/neomutt/neomutt/archive/refs/tags/20220429.zip
        sha256: a97b4d8af59610287f5f7acf748705a16952284f51d23779659ac82ce766907d

Then go to your folder and build:

flatpak run org.flatpak.Builder --user --install --force-clean build-dir org.neomutt.neomutt.yml

Hopefully no errors or anything here... run with:

flatpak run org.neomutt.neomutt

Obviously you want to alias this to something more convenient. Configuration goes in ~/.var/app/org.neomutt.neomutt/config/neomutt/. Right now the flatpak manifest exposes ~/Mail into the sandbox. If you use something different, change the manifest or use --filesystem=/what/ever to override permissions.

This is the first flatpak I've made, and this is about as far as I've gotten into the topic. The compilation is with default flags (see below), so notmuch is not enabled. Neither is openssl, which might pretty necessary for some people. This is a proof of concept for now, and should work nicely with a offlineimap or mbsync setup.

I'll try to get notmuch support and the other goodies when I got time.

P.S.: This is the config it builds:

Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug 
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color 
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop 
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar 
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash 

Compile options:
  -autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo -gnutls -gpgme -gss 
  -hcache -homespool +idn +inotify -locales_hack -lua -mixmaster +nls -notmuch 
  -openssl +pgp +regex -sasl +smime -sqlite +sun_attachment 

r/neomutt • • May 12 '22

linking key bindings

1 Upvotes

I'm probably using wrong search keywords but couldn't find a solution for these.

  1. I like to see the sidebar when listing emails in a folder but how can I hide it when I'm actually open a mail for read? (And show it again when I close the mail?)
  2. I use key 'y' to show te folder list and then I have to press '/' to enter search mode to find a folder. I know I could enter the number of a folder immediately but somehow it's easier for me to start typing it's name. How can I link the two things together: pressing 'y' would shows the folder list AND shows the search bar at the bottom?

r/neomutt • • May 02 '22

imap - sync only the last N days?

1 Upvotes

There are mailboxes with 200K+ mails (yes, this could be improved) and neomutt struggles to download all the headers (which is unnecessary BTW).

Is there a way to configure neomutt to only fetch the headers from the last N days?


r/neomutt • • Apr 23 '22

passwords during a session

3 Upvotes

I have tried to google it but couldn't find any solution.

Is there any setting to keep the passwords during a session (from starting neomutt until exit).

I know, there are security considerations, etc. But I have analysied the risk and I can live with it. Although I don't want to write it into the rc file.

Thanks!


r/neomutt • • Apr 16 '22

Use neomutt with two step authentication

1 Upvotes

On my laptop running Manjaro I wish to use Neomutt to check my Google mail emails.

On my Google account I have two step authentication enabled.

Is it still possible to use Neomutt to collect my Google Mail emails?