Post by Keith ThompsonPost by Jaydip CPost by Chris GreenPost by Jaydip CHi,
I have installed Neomutt on Arch Linux using Luke Smith's
Mutt-Wizard.
It's working fine. I am storing all my emails in my local laptop's
~/.config/mutt/accounts folder which is mentioned in my .muttrc file.
But I have thousands of emails. And very soon there will be some
space problem. So I wanted to change the location of storing the
mails. I intend to store them on an external hard disk. But when I
write the location of external disk in my .muttrc, Neomutt gives me
error as "Cannot execute .muttrc file".
Is there any way to config this?
Please help.
I think you must have some sort of misconfiguration of where things
are. It should be quite easy to do what you want.
What hve you actually put in your .muttrc file? You could post the
whole thing here, less passwords and anything else private of course.
This newsgroup is pretty quiet by the way, the mutt mailing list is
much more active.
Thanks for your reply.
I have some cloud drives, like Google, NextCloud, Mega etc. I
configured Rclone to automount them in home directory. I created a
directory "Mutt" in my "NextCloud" directory.
Now in my gmx muttrc, which is sourced from original
~/.config/mutt/muttrc, in place of 'set folder =
asked if it should create the necessary directories. When I typed
"Yes", it created all the mailboxes except Inbox. And I cannot see any
emails in any mail folders.
I know I am missing something.
Your excerpts from your .muttrc file are line-wrapped, which makes it
difficult to tell exactly what you really have in the file. And you've
shown us only the excerpts that you assume are relevant -- but as you
say, you don't know what the problem is.
If you don't want to share your .muttrc file (and anything it sources),
perhaps you can reduce it to a smaller version that reproduces the
problem and show us that.
As Chris Green suggested, the first thing to do is to verify that you
If there's a problem with that file, I'd expect a more specific error
message than "Cannot source ..." from mutt. You apparently have a
"source" command in your .muttrc. Mutt isn't complaining about
It's complaining about
My guess is that you have a syntax error somwhere in your .muttrc or in
something it refers to.
The string "Cannot source" does not occur anywhere in the current
neomutt source code, and there are no occurrences of "Cannot" that are
not followed by something other than "source". In other words, I don't
see how neomutt could have produced that message. Are you sure that's
*exactly* what it printed? If you want to show us an error message,
copy-and-paste it, don't re-type it.
I presume that your ~/NextCloud directory is actually a separate file
system. If it's not, if it's just synchronized with NextCloud, then
it's going to take up just as much space on your local file system.
Another solution would be to leave your .muttrc alone and make the
folder directory a symbolic link. But that's not going to help with the
problem you're reporting.
Yes. There's nothing in ~/NextCloud/Mutt/ folder.
Here is my original muttrc in ~/.config/mutt/muttrc
# vim: filetype=neomuttrc
source /usr/share/mutt-wizard/mutt-wizard.muttrc
source /home/jaydipc/.config/mutt/accounts/1-***@gmail.com.muttrc
macro index,pager i1 '<sync-mailbox><enter-command>source /home/
jaydipc/.config/mutt/accounts/1-***@gmail.com.muttrc<enter><change-
folder>!<enter>;<check-stats>' "switch to ***@gmail.com"
macro index,pager i2 '<sync-mailbox><enter-command>source /home/
jaydipc/.config/mutt/accounts/2-***@gmx.com.muttrc<enter><change-
folder>!<enter>;<check-stats>' "switch to ***@gmx.com"
This is original ~/.config/mutt/accounts/2-***@gmx.com.muttrc
# vim: filetype=neomuttrc
# muttrc file for account ***@gmx.com
set realname = "joy_deep"
set from = "***@gmx.com"
set sendmail = "msmtp -a ***@gmx.com"
alias me joy_deep <***@gmx.com>
set folder = "/home/jaydipc/.local/share/mail/***@gmx.com"
set header_cache = /home/jaydipc/.cache/mutt-wizard/***@gmx.com/
headers
set message_cachedir = /home/jaydipc/.cache/mutt-wizard/***@gmx.com/
bodies
set mbox_type = Maildir
bind index,pager gg noop
bind index,pager g noop
bind index,pager M noop
bind index,pager C noop
bind index gg first-entry
unmailboxes *
unalternates *
unset signature
unmacro index o
macro index o "<shell-escape>mw -y ***@gmx.com<enter>" "run mbsync to
sync ***@gmx.com"
mailboxes "=Archive" "=Deleted Items" "=Drafts" "=INBOX" "=Junk" "=Junk E-
mail" "=MailCollect/***@yahoo.com" "=OUTBOX" "=Queue" "=Sent"
"=Sent Items" "=Spam" "=Trash"
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to
archive"
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to
archive"
set postponed = "+Drafts"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
macro index,pager gS "<change-folder>=Spam<enter>" "go to spam"
macro index,pager MS ";<save-message>=Spam<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=Spam<enter>" "copy mail to spam"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
This is working fine.
This is after changing to NextCloud muttrc in ~/.config/mutt/muttrc
# vim: filetype=neomuttrc
source /usr/share/mutt-wizard/mutt-wizard.muttrc
source /home/jaydipc/.config/mutt/accounts/1-***@gmail.com.muttrc
macro index,pager i1 '<sync-mailbox><enter-command>source /home/
jaydipc/.config/mutt/accounts/1-***@gmail.com.muttrc<enter><change-
folder>!<enter>;<check-stats>' "switch to ***@gmail.com"
macro index,pager i2 '<sync-mailbox><enter-command>source /home/
jaydipc/.config/mutt/accounts/2-***@gmx.com.muttrc<enter><change-
folder>!<enter>;<check-stats>' "switch to ***@gmx.com"
This is after changing to NextCloud ~/.config/mutt/accounts/2-
***@gmx.com.muttrc
# vim: filetype=neomuttrc
# muttrc file for account ***@gmx.com
set realname = "joy_deep"
set from = "***@gmx.com"
set sendmail = "msmtp -a ***@gmx.com"
alias me joy_deep <***@gmx.com>
set folder = "/home/jaydipc/NextCloud/Mutt/***@gmx.com"
set header_cache = /home/jaydipc/.cache/mutt-wizard/***@gmx.com/
headers
set message_cachedir = /home/jaydipc/.cache/mutt-wizard/***@gmx.com/
bodies
set mbox_type = Maildir
bind index,pager gg noop
bind index,pager g noop
bind index,pager M noop
bind index,pager C noop
bind index gg first-entry
unmailboxes *
unalternates *
unset signature
unmacro index o
macro index o "<shell-escape>mw -y ***@gmx.com<enter>" "run mbsync to
sync ***@gmx.com"
mailboxes "=Archive" "=Deleted Items" "=Drafts" "=INBOX" "=Junk" "=Junk E-
mail" "=MailCollect/***@yahoo.com" "=OUTBOX" "=Queue" "=Sent"
"=Sent Items" "=Spam" "=Trash"
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to
archive"
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to
archive"
set postponed = "+Drafts"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
macro index,pager gS "<change-folder>=Spam<enter>" "go to spam"
macro index,pager MS ";<save-message>=Spam<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=Spam<enter>" "copy mail to spam"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
Now neomutt is starting okay. But when I switch account to
***@gmx.com, it displays nothing. And if I try to go to Inbox, it
says, "/home/jaydipc/NextCloud/Mutt/***@gmx.com/INBOX is not a
mailbox".
Thanks for helping.