Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmail -g option does not work (to gather my Gmail contacts for autocompletion) #218

Open
JinraeKim opened this issue Jan 22, 2020 · 5 comments

Comments

@JinraeKim
Copy link

JinraeKim commented Jan 22, 2020

Error report

Hi, I'm trying to load my Gmail contacts automatically by -g option, i.e., vmail -g.

When typing the command and press Enter on Terminal, an error message is displayed:

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/imap.rb:1219:in `get_tagged_response`: Unknown Mailbox: [Gmail]/["Sent Mail"] (Failure) (Net::IMAP::NoResponseError)

After this, vmail-contacts.txt file is generated without any contents (empty file).

My setting is as follows:

  • Mac or Ubuntu
  • vmail 2.9.10 (due to the issue)
  • Gmail language is English(US) (to prevent unexpected issues)

Note

  • A plain vmail command works well though. I just wonder if there's an easy way to loading my Gmail contacts for autocompletion.
  • I'm a kind of newbie on Github and Vim, so please tell me if this way of opening an issue is not appropriate.
@tom-adsfund
Copy link

Same here.

@notalex
Copy link
Collaborator

notalex commented Feb 6, 2020

@JinraeKim, I apologize for the late response. Your issue is appropriate.
I will try to replicate this issue on my end. In the meantime, the easy way to load gmail contacts is to export contacts out of Gmail:
https://support.google.com/contacts/answer/7199294?co=GENIE.Platform%3DDesktop&hl=en

Find or create a file with the path ~/.vmail/<username>/vmail-contacts.txt (<username> is the name of the folder containing .vmailrc).
Vmail will read your contacts from there. It has to be a simple file with one contact per line. For example here is a sample from my vmail-contacts file:

~/.vmail/notalex/vmail-contacts.txt

[email protected]
[email protected]
Example User <[email protected]>

@tom-adsfund
Copy link

@notalex The approach you've suggested doesn't really do the same thing: the people I send emails to are mostly not in my contacts.

@notalex
Copy link
Collaborator

notalex commented Feb 9, 2020

@tom-adsfund, if you need to send emails to other accounts(not in your Google Contacts) and you need Vmail to autocomplete them; you could simply add those emails in the vmail-contacts.txt file and vmail will autocomplete them with the default Ctrl-x Ctrl-u mapping.
Let me know if this addresses your need.

@JinraeKim
Copy link
Author

@notalex
Thank you for suggesting an alternative way to loading contacts, and it works well.
However, I felt this way is still not comfortable :(
But I've really been impressed by this project as a user of vim :) Good luck!

P.S. I think it will become more comfortable if I can load contacts of Gmail easily and sending emails to a group via shortcut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants