dyne / JaroMail

Terminal UI email client to download, filter, search and archive messages off-line
https://dyne.org/software/jaro-mail
GNU General Public License v3.0
105 stars 9 forks source link

Error : unknown variable #26

Closed dan-mi-sun closed 7 years ago

dan-mi-sun commented 8 years ago

Have upgraded to neomutt from mutt and am getting the following output prior to opening jaro

It is not breaking jaromail, just adding an annoying keystroke to the workflow.

I am getting the following even after running jaro update

dan@drunk_davinci ~/Mail $ jaro                                                                               [2.3.1]
 (*) Jaro Mail v4.3-dev running on GNU/Linux
  .  System in /usr/local/share/jaromail
  .  full set of auxiliary functions loaded
 (*) Opening folder: 
  .  Notmuch powered mutt-kz detected, enabling extra features
Error in /home/dan/Mail/.mutt/rc, line 12: header_cache: unknown variable
Error in /home/dan/Mail/.mutt/rc, line 13: maildir_header_cache_verify: unknown variable
Error in /usr/local/share/jaromail/.mutt/general, line 116: imap_idle: unknown variable
Error in /usr/local/share/jaromail/.mutt/general, line 120: imap_delim_chars: unknown variable
Error in /home/dan/Mail/.mutt/rc, line 27: source: errors in /usr/local/share/jaromail/.mutt/general
source: errors in /home/dan/Mail/.mutt/rc
Press any key to continue...

Here are the lines from /home/dan/Mail/.mutt/rc

And there does exist /home/dan/Mail/.mutt/cache

12 set header_cache= '/home/dan/Mail/.mutt/cache'
13 set maildir_header_cache_verify=no

And corresponding lines from /usr/local/share/jaromail/.mutt/general

24 #set charset = iso-8859-1                                                          
25 #set send_charset = us-ascii                                                       
26 set charset = utf-8                                                                
27 #set shell = retrieved from passwd file                                            
28 #set simple_search = "~f %s | ~s %s"      
...
116 set imap_idle = no                                                                 
117 # set mbox_type = mbox                                                             
118 # bug for when a folder has a period in the name                                   
119 # http://lists.df7cb.de/mutt/message/20090601.013609.d402c3aa.en.html              
120 set imap_delim_chars = '/'      

Although the above does not experientially seem to be effecting jaromail - would be sweet not to have additional keystroke when entering mail each time ;)

Thanks in advance for input!

8^D

jaromil commented 8 years ago

ACK yes neomutt should be contemplated, not sure it will loose features (in particular hcache), however this can be solved with a simple check just like it is done in the function is_mutt_kz for detecting mutt-kz flavor.

parazyd commented 8 years ago

Recompile neomutt with --enable-hcache :)

Here's my configuraion options: @jaromil can you share yours so we can see what's the minimum to work without issues?

$ mutt -v | grep 'Configure options'

Configure options: '--prefix=/usr' '--build=x86_64-gentoo-linux-musl' '--host=x86_64-gentoo-linux-musl' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/mutt-1.7.1' '--htmldir=/usr/share/doc/mutt-1.7.1/html' '--libdir=/usr/lib' '--enable-pgp' '--disable-debug' '--enable-gpgme' '--enable-imap' '--disable-nls' '--disable-nntp' '--enable-pop' '--enable-sidebar' '--enable-smime' '--enable-smtp' '--enable-notmuch' '--without-idn' '--without-gss' '--with-curses=/usr' '--enable-compressed' '--enable-external-dotlock' '--enable-nfs-fix' '--sysconfdir=/etc/mutt' '--with-docdir=/usr/share/doc/mutt-1.7.1' '--with-regex' '--with-exec-shell=/bin/sh' '--enable-hcache' '--without-tokyocabinet' '--without-qdbm' '--with-gdbm' '--without-bdb' '--with-ssl' '--with-sasl' '--with-homespool=Maildir' 'build_alias=x86_64-gentoo-linux-musl' 'host_alias=x86_64-gentoo-linux-musl' 'CFLAGS=-march=westmere -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
dan-mi-sun commented 8 years ago
$ mutt -v | grep 'Configure options'                                                     
Configure options: '-enable-notmuch' '-enable-sidebar' '-enable-gpgme' '--disable-nls'

Is the one which has caused the issues I have noted above ^

dan-mi-sun commented 8 years ago

@parazyd your suggestion of -enable-hcache fixed it.

$ mutt -v | grep 'Configure options'                                                      
Configure options: '-enable-notmuch' '-enable-sidebar' '-enable-gpgme' '--disable-nls' '--with-ssl' '-enable-hcache' '--with-regex' '-enable-imap' '-enable-pgp'

I also added a few others which you have highlighted :)

Thanks again for your help!