You are not logged in.

#1 2015-10-10 10:51:51

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Mutt help wit config

can anyone pls help with the following:

1) when not connected to the internet I cannot use Mutt...I get could not find host imap gmail and get a black screen in mutt  (no folders/emails) just saying no mail box open

2) have set up F2 / F3 to switch email account 1 & 2...this works apart from the fact that all folders from both accounts are merged into one

muttrc

set sleep_time = 0
set mail_check= 5
set beep_new 
set beep_new=yes
unset beep 
set   delete
set   fast_reply

#set spoolfile = "+Work/INBOX"

# Default account
source ~/.mutt/account.com.gmail.boyo.ralph

# Folder hooks
folder-hook 'account.com.gmail.boyo.ralph' 'source ~/.mutt/account.com.gmail.boyo.ralph'
folder-hook 'account.com.gmail.ralpheeee88' 'source ~/.mutt/account.com.gmail.ralpheeee88'


# Macros for switching accounts
macro index <F2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.boyo.ralph<enter><change-folder>!<enter>'
macro index <F3> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.ralpheeee88<enter><change-folder>!<enter>'


# Set default text editor
set editor = "vim"


# IMAP: offlineimap
set folder = "~/Mail"
source ~/.mutt/account.com.gmail.boyo.ralph
source ~/.mutt/account.com.gmail.ralpheeee88
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent\ Items"



#-------- Basic Config {{{
#------------------------------------------------------
# set imap_check_subscribed
set hostname = gmail.com
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set record = "+[GMail]/Sent Mail"
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/html *
auto_view text/html
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop 
# }}}

folder-hook * "exec collapse-all"

macro index ,v "<collapse-thread>" "collapse/uncollapse thread"
macro index ,V "<collapse-all>"    "collapse/uncollapse all threads"

# threads containing new messages
uncolor index "~(~N)"
  color index brightblue default "~(~N)"

# new messages themselves
uncolor index "~N"
  color index brightyellow default "~N"


# Gmail-style keyboard shortcuts
macro index gz "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to 'Sent Mail'"
macro index gf "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index gt "<change-folder>=[Gmail]/Bin<enter>" "Go to trash"
macro index gj "<change-folder>=[Gmail]/Spam<enter>" "Go to Spam"
macro index,pager x "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
macro index,pager z "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"


# How often should mutt check for new mail?
set mail_check=60
# Notify me of new mail in my mailbox this often
set timeout=15

set imap_check_subscribed

# up/down to select next, prev folder
# right to open selected folder
#bind index,pager <up> sidebar-prev
#bind index,pager <down> sidebar-next
#bind index,pager <right> sidebar-open

bind index,pager < sidebar-prev
bind index,pager > sidebar-next
bind index,pager ? sidebar-open

bind index \su sidebar-scroll-up
bind index \sd sidebar-scroll-down
bind pager \su sidebar-scroll-up
bind pager \sd sidebar-scroll-down

bind pager h display-toggle-weed        #toggle headers with h key


#-------- Color Theme {{{
#------------------------------------------------------

color hdrdefault cyan default
color attachment yellow default

color header brightyellow default "From: "
color header brightyellow default "Subject: "
color header brightyellow default "Date: "

color quoted green default
color quoted1 cyan default
color quoted2 green default
color quoted3 cyan default

color error     red             default         # error messages
color message   white           default         # message  informational messages
color indicator brightred           default             # indicator for the "current message"
color status    white           blue            # status lines in the folder index sed for the mini-help line
color tree      blue             default         # the "tree" display of threads within the folder index
color search    white           blue            # search matches found with search within the internal pager
color markers   red             default         # The markers indicate a wrapped line hen showing messages with looong lines

color index     yellow default  '~O'
color index     yellow default  '~N'
color index     brightyellow       default '~F'    # Flagged Messages are important!
color index     blue default    '~D'            # Deleted Mails - use dark color as these are already "dealt with"
# }}} 

# Sidebar Patch --------------------------------------
set sidebar_visible = yes
set sidebar_sort = yes
set sidebar_width   = 30
macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

# color of folders with new mail
color sidebar_new brightcyan default


set query_command="goobook query '%s'"
macro index,pager a "<pipe-message>goobook add<return>" "add sender to google contacts"
bind editor <Tab> complete-query

offlinerc

[general]
ui = ttyui
accounts = Personal,Work

# Controls how many accounts may be synced simultaneously
maxsyncaccounts = 4
autorefresh = 5
quick = 10
keepalive = 60
holdconnectionopen = yes

[Account Personal]
localrepository = Personal-Local
remoterepository = Personal-Remote

[Account Work]
localrepository = Work-Local
remoterepository = Work-Remote

[Repository Personal-Local]
type = Maildir
localfolders = ~/mail/Personal

[Repository Work-Local]
type = Maildir
localfolders = ~/mail/Work

[Repository Personal-Remote]
type = Gmail
remoteuser = ralpheeee88@gmail.com
remotepass = xxxxxxxxx
realdelete = no
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

[Repository Work-Remote]
type = Gmail
remoteuser = boyo.ralph@gmail.com
remotepass = xxxxxxxxx
realdelete = no
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

account 1

set imap_user = "boyo.ralph@gmail.com"
set imap_pass = "xxxxxxxx"
set smtp_url = "smtp://boyo.ralph@smtp.gmail.com:587/"
set smtp_pass = "xxxxxxxxx"
set from = "boyo.ralph@gmail.com"
set realname = "Ralph Boyo"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set header_cache = ~/.mutt/com.gmail.boyo/cache/headers
set message_cachedir = ~/.mutt/com.gmail.boyo/cache/bodies
set certificate_file = ~/.mutt/com.gmail.boyo/certificates
set move = no
set signature="~/.sig"

color status white blue

account 2

set imap_user = "ralpheeee88@gmail.com"
set imap_pass = "xxxxx"
set smtp_url = "smtp://ralpheeee88@smtp.gmail.com:587/"
set smtp_pass = "xxxxxxxx"
set from = "ralpheeee88@gmail.com"
set realname = "Ralpheeee"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set header_cache = ~/.mutt/com.gmail.ralpheeee88/cache/headers
set message_cachedir = ~/.mutt/com.gmail.ralpheeee88/cache/bodies
set certificate_file = ~/.mutt/com.gmail.ralpheeeee88/certificates
set move = no
set signature="~/.sigralpheeee"

color status white black

Last edited by ralpheeee88 (2015-10-10 11:40:46)

Offline

#2 2015-10-10 12:18:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

EDIT: sorry, I read far to quickly the first time and misunderstood.

Is you problem actually with mutt, or with offlineimap?  Are your email files stored locally where you expect them to be?

Your muttrc sourced files for each accounts don't actually point at your local maildirs, but rather at the imap server - this is why you can't access them while offline.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-10-10 12:32:53

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

EDIT: sorry, I read far to quickly the first time and misunderstood.

Is you problem actually with mutt, or with offlineimap?  Are your email files stored locally where you expect them to be?

Your muttrc sourced files for each accounts don't actually point at your local maildirs, but rather at the imap server - this is why you can't access them while offline.

ok so my emails are stored locally....tried changing a few things around...cant get it work...keep getting syntax error...could you possibly illustrate pls?

# IMAP: offlineimap
set folder = "~/Mail/Work"
set folder = "~/Mail/Personal"
source ~/.mutt/com.gmail.boyo
source ~/.mutt/com.gmail.ralpheeee88
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent\ Items"

I think your talking about this section and trying to make change to no success...

Last edited by ralpheeee88 (2015-10-10 12:39:43)

Offline

#4 2015-10-10 12:48:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

You can only set folder once - I suspect all the other uses of `set folder` are overriding the first.  So when you set folder in those sourced files, you end up just setting the folder to the last imap server listed.

I use mbsync for a local maildir - but from the mutt side, it is the same as using offline imap.  Some anonymized excerpts from my muttrc:

# use smtp for sending
set from="myemail@myserver"
set smtp_url="smtp://user@mail.server:587/"
set smtp_pass="mypassword"
set ssl_starttls = yes

# but only use local maildirs for receiving.  Set my preferred/default account as the folder value:
set realname="First Last"
set mbox_type=Maildir
set folder=$HOME/.mail/main_account
set spoolfile=+/Inbox
set record="+/Sent"
set postponed="+/Drafts"

# use keybindings to switch to other account mailboxes:
macro index <f1> "c=Inbox<return>" "change to main account inbox"
macro index <f2> "c=../second_account/Inbox<return>" "change to second account inbox"
macro index <f3> "c=../third_account/Inbox<return>" "change to third account inbox"

In short, if you are using offline imap, let that handle all your accounts.  Mutt just then accesses a local maildir.  Aside from a couple lines for sending through your preferred smtp server, there should be *nothing* about gmail or mail servers in your mutt configuration.  You are just reading files in different subdirectories of ~/.mail (or ~/Maildir, or wherever you store your mail - ~/Mail in your case).

I have more in my muttrc for colors, some other bindings, and some other settings, but the above lines should be all that would be needed to use mutt with several local maildir accounts handled by offlineimap.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-10-10 13:33:46

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

You can only set folder once - I suspect all the other uses of `set folder` are overriding the first.  So when you set folder in those sourced files, you end up just setting the folder to the last imap server listed.

I use mbsync for a local maildir - but from the mutt side, it is the same as using offline imap.  Some anonymized excerpts from my muttrc:

# use smtp for sending
set from="myemail@myserver"
set smtp_url="smtp://user@mail.server:587/"
set smtp_pass="mypassword"
set ssl_starttls = yes

# but only use local maildirs for receiving.  Set my preferred/default account as the folder value:
set realname="First Last"
set mbox_type=Maildir
set folder=$HOME/.mail/main_account
set spoolfile=+/Inbox
set record="+/Sent"
set postponed="+/Drafts"

# use keybindings to switch to other account mailboxes:
macro index <f1> "c=Inbox<return>" "change to main account inbox"
macro index <f2> "c=../second_account/Inbox<return>" "change to second account inbox"
macro index <f3> "c=../third_account/Inbox<return>" "change to third account inbox"

In short, if you are using offline imap, let that handle all your accounts.  Mutt just then accesses a local maildir.  Aside from a couple lines for sending through your preferred smtp server, there should be *nothing* about gmail or mail servers in your mutt configuration.  You are just reading files in different subdirectories of ~/.mail (or ~/Maildir, or wherever you store your mail - ~/Mail in your case).

I have more in my muttrc for colors, some other bindings, and some other settings, but the above lines should be all that would be needed to use mutt with several local maildir accounts handled by offlineimap.

am too retarded ...i dont understand
in muutrc  set folder points to ~/.mutt where i have set-up both my email accounts

8 # IMAP: offlineimap
  #set folder = "~/Mail"
  set folder = ~/mail
  source ~/.mutt/account.com.gmail.boyo.ralph
  source ~/.mutt/account.com.gmail.ralpheeee88
  set spoolfile = "+INBOX"
  set postponed = "+[Gmail]/Drafts"
  set record = "+[Gmail]/Sent\ Items"

are you saying i should not do this and use config offlineimap as "set folder and source?

Offline

#6 2015-10-10 13:41:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

I'm saying use the "set folder" line only once.

Looking back at your offlineimap config, you have mail stored in ~/mail/personal and ~/mail/work.  One of these you would want  as your default, right?  Which one?  Assuming it is personal, you could do the following:

set mbox_type=Maildir
set folder=$HOME/mail/personal
#adjust the following lines for what the Inbox path is actually named
set spoolfile=+/Inbox
macro index <f1> "c=Inbox<return>" "change to personal account inbox"
macro index <f2> "c=../work/Inbox<return>" "change to work account inbox"

If offlineimap is working, don't change anything about it.  Get rid of the two files you are sourcing in your muttrc.  Mutt should not have any information about your mail servers to receive email (there should be no references at all to imap servers).

Now, if you want to *send* from a different smtp server based on which account you are currently viewing, that can be done.  There are a few approaches, but take one step at a time.  I'd recommend first just picking one smtp server to send all outgoing mail until everything is up and running.  Then you can look into hooks to change the outgoing server as desired.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2015-10-10 13:57:25

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

I'm saying use the "set folder" line only once.

Looking back at your offlineimap config, you have mail stored in ~/mail/personal and ~/mail/work.  One of these you would want  as your default, right?  Which one?  Assuming it is personal, you could do the following:

set mbox_type=Maildir
set folder=$HOME/mail/personal
#adjust the following lines for what the Inbox path is actually named
set spoolfile=+/Inbox
macro index <f1> "c=Inbox<return>" "change to personal account inbox"
macro index <f2> "c=../work/Inbox<return>" "change to work account inbox"

If offlineimap is working, don't change anything about it.  Get rid of the two files you are sourcing in your muttrc.  Mutt should not have any information about your mail servers to receive email (there should be no references at all to imap servers).

Now, if you want to *send* from a different smtp server based on which account you are currently viewing, that can be done.  There are a few approaches, but take one step at a time.  I'd recommend first just picking one smtp server to send all outgoing mail until everything is up and running.  Then you can look into hooks to change the outgoing server as desired.

I have commented out:

  8 #set spoolfile = "+Work/INBOX"
  7 #set spoolfile = "+Personal/INBOX"
  6 
  5 # IMAP: offlineimap
  4 #set folder = ~/mail
  3 #source ~/.mutt/account.com.gmail.boyo.ralph
  2 #source ~/.mutt/account.com.gmail.ralpheeee88
  1 #set spoolfile = "+INBOX"
  0 #set postponed = "+[Gmail]/Drafts"
  1 #set record = "+[Gmail]/Sent\ Items"
  2 
  3 
  4 # Default account
  5 #source ~/.mutt/account.com.gmail.boyo.ralph
  6 
  7 # Folder hooks
  8 #folder-hook 'account.com.gmail.boyo.ralph' 'source ~/.mutt/account.com.gmail.boyo.ralph'
  9 #folder-hook 'account.com.gmail.ralpheeee88' 'source ~/.mutt/account.com.gmail.ralpheeee88'
 10 
 11 
 12 # Macros for switching accounts
 13 #macro index <F2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.boyo.ralph    <enter><change-folder>!<enter>'
 14 #macro index <F3> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.ralpheeee8    8<enter><change-folder>!<enter>

used your syntax

 18 set mbox_type=Maildir
 17 set folder=$HOME/mail/work
 16 #adjust the following lines for what the Inbox path is actually named
 15 set spoolfile=+/Inbox
 14 macro index <f1> "c=Inbox<return>" "change to personal account inbox"
 13 macro index <f2> "c=../personal/Inbox<return>" "change to work account inbox"

and get

 /home/ralpheeee/mail/work does not exist. Create it? ([yes]/no): 

(I appreciate you time and effort but if I am beginning to pester you just let me know)

Last edited by ralpheeee88 (2015-10-10 14:03:25)

Offline

#8 2015-10-10 14:24:18

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

set folder = "~/mail/Work"
source ~/.mutt/account.com.gmail.boyo.ralph
set spoolfile = "+Work/INBOX"
set record = "+Work/Sent\ Items"
set postponed = "+Work/Drafts"
#adjust the following lines for what the Inbox path is actually named
#source ~/.mutt/account.com.gmail.boyo.ralph
#source ~/.mutt/account.com.gmail.ralpheeee88

starting off with one account.... this is what i have done....when not connected to internet i cannot access emails / mutt

Last edited by ralpheeee88 (2015-10-10 14:27:05)

Offline

#9 2015-10-10 14:41:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

 /home/ralpheeee/mail/work does not exist. Create it? ([yes]/no): 

This means offlineimap is not syncing your mail to ~/mail/work.  But you had already stated that you have your mail locally stored in a maildir: if it is not ~/mail/work, then where is it?  Is it ~/mail/Work?  Case matters.  Set the folder variable in muttrc to where your mail actually is - I gave examples form my system, but I don't know where your mail is.

Also the spool file, record, and postponded are wrong below:

set folder = "~/mail/Work"
source ~/.mutt/account.com.gmail.boyo.ralph
set spoolfile = "+Work/INBOX"
set record = "+Work/Sent\ Items"
set postponed = "+Work/Drafts"

These are set *relative* to the folder.  So you are telling mutt that the spoolfile is ~/mail/Work/Work/INBOX when it is probably more like ~/mail/Work/INBOX (or perhaps ~/mail/Work/Inbox, or some other variation).

Keep in mind this is getting very confusing: you are editting several files and sourcing some of them without showing what's in them.  In your very last post, you show a pretty good start to a muttrc file, but it also sources some other file - and I have no idea what is in that other file at the moment.  For now, just use one file and show what is in it at each state of troubleshooting - you can split it up later if you want.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2015-10-10 14:50:10

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

http://ix.io/lkU

so how do I see were my mail dir is?

Offline

#11 2015-10-10 14:54:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

You tell me.  The offlineimaprc that you shared in your first post suggests that it is at ~/mail/Personal.  I was curious whether offlineimap was actually working, so I asked early on if you could see the actual mail files in that directory - you claimed they were there ... so wherever you looked and found them is where your maildir is.

Is there a folder ~/mail/Personal?  Does is contain subfolders?  If so, what are they?  Is one of them Inbox or INBOX or something like that?  Does this subfolder have three subfolders of it's own called new cur and tmp?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2015-10-10 16:10:20

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

You tell me.  The offlineimaprc that you shared in your first post suggests that it is at ~/mail/Personal.  I was curious whether offlineimap was actually working, so I asked early on if you could see the actual mail files in that directory - you claimed they were there ... so wherever you looked and found them is where your maildir is.

Is there a folder ~/mail/Personal?  Does is contain subfolders?  If so, what are they?  Is one of them Inbox or INBOX or something like that?  Does this subfolder have three subfolders of it's own called new cur and tmp?

ok so I nuked all various folders that had emails....and ran offlineimap again....

emails are in ~/mail >
1) Personal
2) Work

both have sub directories folders of my gmail accounts

Last edited by ralpheeee88 (2015-10-10 16:11:37)

Offline

#13 2015-10-10 21:55:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

So then set the folder in muttrc to one of those as I described in post #9.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2015-10-11 10:36:21

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

So then set the folder in muttrc to one of those as I described in post #9.

ok so i got rid of offlineimap and use isync:

set mbox_type=Maildir
set folder = "/.mail/gmail"
source ~/.mutt/account.com.gmail.boyo.ralph
set spoolfile = "+INBOX"
set record = "+Sent\ Items"
set postponed = "+Drafts"
IMAPAccount gmail
# Address to connect to
Host imap.gmail.com
User boyo.ralph@gmail.com
Pass XXXXXXXXX
# To store the password in an encrypted file use PassCmd instead of Pass
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
#
# Use SSL
SSLType IMAPS
# The following line should work. If get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
CertificateFile /etc/ssl/certs/ca-certificates.crt
#CertificateFile ~/.cert/imap.gmail.com.pem
#CertificateFile ~/.cert/Equifax_Secure_CA.pem

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
# The trailing "/" is important
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox

Channel gmail
Master :gmail-remote:
Slave :gmail-local:
# Exclude everything under the internal [Gmail] folder, except the interesting folders
#Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
# Or include everything
Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Save the synchronization state files in the relevant directory
SyncState *

mail is synced into ~/.mail/gmail (only doing one account)

however I get following error when trying to open mutt without email connection

Could not find the host "imap.gmail.com"

and have a blank mutt (no folders/emails inside of mutt)


so another strange behaviour....changed colours in my accounts ; account 1 > black; account 2 > blue....so when I start mutt my default account is 1...when starting account 1 is blue...if i press F2 it changes colour to black...F3 for account 2 to blue......am just wondering why when I initially start mutt it opens account 1 but with blue colour scheme

Last edited by ralpheeee88 (2015-10-11 12:12:28)

Offline

#15 2015-10-11 12:43:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

Why did you change the one thing that was working?! offlineimap was working fine.  Now we have yet a new variable thrown into the mix for no reason.  Is isync retrieving your mail?  Do you have subfolders of ~/mail/gmail?  Based on your config file, if you do, INBOX is not one of them, but Inbox is - so why do you specify INBOX in your muttrc?  We were making progress, but now we need to start completely back at the beginning.

Also as I've said many times now, the problem still remains that you are sourcing that other file in muttrc.  I don't know what is in that file, but I am quite confident that that is where the problem is.  If mutt is trying to connect to imap.gmail.com then it must be due to what is in that sourced file.

As for the color changes, I have no clue.  You are clearly hiding some of your muttrc that would have this information.

Trilby wrote:

Keep in mind this is getting very confusing: you are editting several files and sourcing some of them without showing what's in them.

If you don't post the actual full current contents of your muttrc file I will not post here again.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2015-10-11 13:03:16

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

Why did you change the one thing that was working?!

Also as I've said many times now, the problem still remains that you are sourcing that other file in muttrc.  I don't know what is in that file, but I am quite confident that that is where the problem is.  If mutt is trying to connect to imap.gmail.com then it must be due to what is in that sourced file.

As for the color changes, I have no clue.  You are clearly hiding some of your muttrc that would have this information.

Trilby wrote:

Keep in mind this is getting very confusing: you are editting several files and sourcing some of them without showing what's in them.

If you don't post the actual full current contents of your muttrc file I will not post here again.

well I cant thank you enough for taking the time to help me and go through the details!!!!

I have always had this when not connected to internet:

 Could not find the host "imap.gmail.com"

here are all my files once again....the only thing i have changed are the password to XXXXXX

.mutrc

set sleep_time = 0
set mail_check= 5
set beep_new 
set beep_new=yes


# Folder hooks
folder-hook 'account.com.gmail.boyo.ralph' 'source ~/.mutt/account.com.gmail.boyo.ralph'
folder-hook 'account.com.gmail.ralpheeee88' 'source ~/.mutt/account.com.gmail.ralpheeee88'

# Default account
source ~/.mutt/account.com.gmail.boyo.ralph

# Macros for switching accounts
macro index <F2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.boyo.ralph<enter><change-folder>!<enter>'
macro index <F3> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.ralpheeee88<enter><change-folder>!<enter>'

set mbox_type=Maildir
set folder = "/.mail/gmail"
source ~/.mutt/account.com.gmail.boyo.ralph
set spoolfile = "+/"
#set record = "+Sent\ Items"
#set postponed = "+Drafts"


# Set default text editor
set editor = "vim"


#-------- Basic Config {{{
#------------------------------------------------------
set imap_check_subscribed
set hostname = gmail.com
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set record = "+[GMail]/Sent Mail"
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/html *
auto_view text/html
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop 
# }}}

# Gmail-style keyboard shortcuts
macro index gz "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail"
macro index gf "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
macro index gj "<change-folder>=[Gmail]/Spam<enter>" "Go to spam"
macro index,pager x "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
macro index,pager z "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"


# How often should mutt check for new mail?
set mail_check=60
# Notify me of new mail in my mailbox this often
set timeout=15

set imap_check_subscribed

# up/down to select next, prev folder
# right to open selected folder
#bind index,pager <up> sidebar-prev
#bind index,pager <down> sidebar-next
#bind index,pager <right> sidebar-open

bind index,pager < sidebar-prev
bind index,pager > sidebar-next
bind index,pager ? sidebar-open

bind index \su sidebar-scroll-up
bind index \sd sidebar-scroll-down
bind pager \su sidebar-scroll-up
bind pager \sd sidebar-scroll-down

bind pager h display-toggle-weed        #toggle headers with h key


#-------- Color Theme {{{
#------------------------------------------------------

color hdrdefault cyan default
color attachment yellow default

color header brightyellow default "From: "
color header brightyellow default "Subject: "
color header brightyellow default "Date: "

color quoted green default
color quoted1 cyan default
color quoted2 green default
color quoted3 cyan default

color error     red             default         # error messages
color message   white           default         # message  informational messages
color indicator brightred           default             # indicator for the "current message"
color status    white           blue            # status lines in the folder index sed for the mini-help line
color tree      blue             default         # the "tree" display of threads within the folder index
color search    white           blue            # search matches found with search within the internal pager
color markers   red             default         # The markers indicate a wrapped line hen showing messages with looong lines

color index     yellow default  '~O'
color index     yellow default  '~N'
color index     brightyellow       default '~F'    # Flagged Messages are important!
color index     blue default    '~D'            # Deleted Mails - use dark color as these are already "dealt with"
# }}} 

# Sidebar Patch --------------------------------------
set sidebar_visible = yes
set sidebar_sort = yes
set sidebar_width   = 30
macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

# color of folders with new mail
color sidebar_new brightcyan default


set query_command="goobook query '%s'"
macro index,pager a "<pipe-message>goobook add<return>" "add sender to google contacts"
bind editor <Tab> complete-query

main account (/home/ralpheeee/.mutt/account.com.gmail.boyo.ralph)

set imap_user = "boyo.ralph@gmail.com"
set imap_pass = xxxxxxxxxxxxxx
set smtp_url = "smtp://boyo.ralph@smtp.gmail.com:587/"
set smtp_pass = xxxxxxxxxxxxxx
set from = "boyo.ralph@gmail.com"
set realname = "Ralph Boyo"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+"
set postponed = "+[Gmail]/Drafts"
set header_cache = ~/.mutt/com.gmail.boyo/cache/headers
set message_cachedir = ~/.mutt/com.gmail.boyo/cache/bodies
set certificate_file = ~/.mutt/com.gmail.boyo/certificates
set move = no

set signature="~/.sig"

color status white black

account 2 (/home/ralpheeee/.mutt/account.com.gmail.ralpheeee88)


set imap_user = "ralpheeee88@gmail.com"
set imap_pass = xxxxxxxxxxxxx
set smtp_url = "smtp://ralpheeee88@smtp.gmail.com:587/"
set smtp_pass = xxxxxxxxxxxxx
set from = "ralpheeee88@gmail.com"
set realname = "Ralph Boyo"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+"
set postponed = "+[Gmail]/Drafts"
set header_cache = ~/.mutt/com.gmail.ralpheeee88/cache/headers
set message_cachedir = ~/.mutt/com.gmail.ralpheeee88/cache/bodies
set certificate_file = ~/.mutt/com.gmail.ralpheeeee88/certificates
set move = no

set signature="~/.sigralpheeee"

color status white blue

isync folder earlier has not changed....

these are all the files I know of which i use (i went to /etc folder to check and see what the muttrc files look and make sure it was the default file

 "sourcing that other file in muttrc"

really dont know what your trying to point me to...

isync working fine....

Last edited by ralpheeee88 (2015-10-11 13:05:14)

Offline

#17 2015-10-11 13:16:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

Trilby wrote:

I'm saying use the "set folder" line only once.

...

Get rid of the two files you are sourcing in your muttrc.  Mutt should not have any information about your mail servers to receive email (there should be no references at all to imap servers).

So you gave me the impression earlier that you had followed my advice - but it turns out you were ignoring it all along and instead of removing the offending parts of your muttrc, you just hid them.

What kind of help do you expect here if you will not make the suggested revisions to your muttrc?  I'm telling you what you need to do, but you are not doing it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#18 2015-10-11 13:29:13

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:
Trilby wrote:

I'm saying use the "set folder" line only once.

...

Get rid of the two files you are sourcing in your muttrc.  Mutt should not have any information about your mail servers to receive email (there should be no references at all to imap servers).

So you gave me the impression earlier that you had followed my advice - but it turns out you were ignoring it all along and instead of removing the offending parts of your muttrc, you just hid them.

What kind of help do you expect here if you will not make the suggested revisions to your muttrc?  I'm telling you what you need to do, but you are not doing it.

this is a newbie section and i am sorry to say i find your directions vague..."Get rid of the two files you are sourcing in your muttrc"....


you referring to my folder hooks section, basic config section,........

Offline

#19 2015-10-11 13:35:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Mutt help wit config

I'm referring to the whole damned thing.  There is nothing vague about saying use "set folder" only once.  That setting appears in your config 3 or 4 times.  3 or 4 is more than once.

There is also nothing vague about saying there should be no references at all to imap servers.  You have three lines explicitly referencing imap servers and dozens more setting imap settings.

How can I be more direct: get rid of all of that crap.  All of it.  Start fresh and build from there.  What you had in post #8 would have worked - the reason it didn't was that all those settings were changed or overridden by all that other crap that you didn't mention in your muttrc.  So delete the entire muttrc file and everything it sources.  Start with only what you had in post #8 (except for that source line - don't source any other files).  Now it will also need to be revised to match the folder structure of isync rather than offlineimap, but it should still only be 6 or 7 lines long.  Or start with what I had in post #6 - and use only that with the paths revised.  I'll go even further and revise it for you:

set mbox_type=Maildir
set folder=$HOME/mail/gmail
#adjust the following lines for what the Inbox path is actually named
set spoolfile=+/Inbox

To be clear, that is not an excerpt, that is a fully functional muttrc for reading mail (we'll work on sending next if you are able and willing to follow instructions).

When that works (not if, but when, because it will work as soon as you actually do what is requested), then you can add back colors, and any other fancy stuff you want.  But you will not ever add back imap settings to your muttrc.  You are using isync to retrieve your mail, not mutt.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2015-10-11 13:40:06

ralpheeee88
Member
Registered: 2015-04-19
Posts: 30

Re: Mutt help wit config

Trilby wrote:

I'm referring to the whole damned thing.  There is nothing vague about saying use "set folder" only once.  That setting appears in your config 3 or 4 times.  3 or 4 is more than once.

There is also nothing vague about saying there should be no references at all to imap servers.  You have three lines explicitly referencing imap servers and dozens more setting imap settings.

How can I be more direct: get rid of all of that crap.  All of it.  Start fresh and build from there.  What you had in post #8 would have worked - the reason it didn't was that all those settings were changed or overridden by all that other crap that you didn't mention in your muttrc.  So delete the entire muttrc file and everything it source.  Start with only what you had in post #8 (except for that source line - don't source any other files).  Now it will also need to be revised to match the folder structure of isync rather than offlineimap, but it should still only be 6 or 7 lines long.

When that works (not if, but when, because it will work as soon as you actually do what is requested), then you can add back colors, and any other fancy stuff you want.  But you will not ever add back imap settings to your muttrc.  You are using isync to retrieve your mail, not mutt.

as a moderator i can only suggest you delete the whole thread...obviously I exhausted your patience....

Offline

Board footer

Powered by FluxBB