danchoi / vmail

a vim interface for gmail
http://danielchoi.com/software/vmail.html
MIT License
786 stars 60 forks source link

Vim - Unknown option argument: "--servername" #187

Closed GrahameBlackwood closed 9 years ago

GrahameBlackwood commented 9 years ago

Since I updated Vmail to version 2.9.3 yesterday, I haven't been able to load and use it as it crashes out with the comment:

Unknown option argument: "--servername".

The last few lines output from vmail are:

vim --servername VMAIL:grahameblackwood@gmail.com -S /home/grahame/.rvm/gems/ruby-1.9.2-p180/gems/vmail-2.9.3/lib/vmail. vim -c '' vmailbuffer Using buffer file: vmailbuffer VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 22 2013 09:54:35) Unknown option argument: "--servername" More info with: "vim -h" Closing imap connection Bye

And the tail of the vmail.log reads:

D, [2014-10-22T09:31:57.646993 #13654] DEBUG -- : RUBY0001 OK grahameblackwood@gmail.com authenticated (Success)

D, [2014-10-22T09:31:57.647236 #13654] DEBUG -- : loading mailboxes... D, [2014-10-22T09:31:57.739679 #13654] DEBUG -- : Loaded mailboxes: ["INBOX", "Drafts", "Personal", "Queue", "Receipts", "Sent", "Trash", "Travel", "Work", "[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash", "[Google Mail]/Drafts"] D, [2014-10-22T09:31:57.739962 #13654] DEBUG -- : Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Google Mail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"} D, [2014-10-22T09:31:57.741448 #13654] DEBUG -- : Selecting mailbox "INBOX" D, [2014-10-22T09:31:58.991915 #13654] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2014-10-22T09:31:58.992120 #13654] DEBUG -- : Done D, [2014-10-22T09:31:58.993210 #13654] DEBUG -- : Getting mailbox status D, [2014-10-22T09:31:58.993375 #13654] DEBUG -- : Getting highest message id D, [2014-10-22T09:32:02.772362 #13654] DEBUG -- : Highest seqno: 99441 D, [2014-10-22T09:32:02.789687 #13654] DEBUG -- : Closing connection

Hope there is a simple adjustment to allow Vmail to launch as it did until yesterday.

Cheers

G

notalex commented 9 years ago

Vmail requires vim to be compiled with the +clientserver flag. Some linux distributions and OSx do not install vim with this flag. Check https://github.com/danchoi/vmail/issues/173 for more details.

GrahameBlackwood commented 9 years ago

Hi Alex

Got it thanks very much for you quick response and solution.

I didn't realize (didn't look far enough down the page of issues to notice that it had been raised before) my version of vim needed the clientserver flag. I use PCLinuxOs and it's version of vim isn't compiled with this flag set. I tried putting 'export VMAIL_VIM=gvim' in my bash_profile and it worked, but I wanted it to work in a terminal. So I've changed this to 'export VMAIL_VIM=vimx' and it now works nicely in a terminal.

What do I do now with the issue report that I filed (I've never done one before)?

Thanks again.

G

On Thu, Oct 23, 2014 at 05:40 AM, Alex notifications@github.com wrote:

from: Alex notifications@github.com date: Wed, Oct 22 09:40 PM -07:00 2014 to: danchoi/vmail vmail@noreply.github.com cc: GrahameBlackwood grahameblackwood@gmail.com reply-to: danchoi/vmail reply@reply.github.com subject: Re: [vmail] Vim - Unknown option argument: "--servername" (#187)

Vmail requires vim to be compiled with the +clientserver flag. Some linux distributions and OSx do not install vim with this flag. Check https://github.com/danchoi/vmail/issues/173 for more details.


Reply to this email directly or view it on GitHub: https://github.com/danchoi/vmail/issues/187#issuecomment-60191999