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

gmvault sync -t custom -g 'in:labelname' not working #35

Closed
hrafnkell opened this Issue May 18, 2012 · 6 comments

Comments

Projects
None yet
2 participants
@hrafnkell
Copy link

hrafnkell commented May 18, 2012

I'm running the latest version of the gmvault (installed via the windows installer, downloaded today) on Win7. When I try backing up a specific label then nothing gets downloaded:

gmvault-shell>gmvault sync --type custom -g 'in:programs' --debug email@gmail.com

Use gmvault-db located in C:\Users\Hrafnkell/gmvault-db.

Activate debugging information.
Debugging logs are going to be saved in file C:\Users\Hrafnkell/gmvault.log.

Authentication performed with Gmail XOAuth token.

no ENV variable $GMVAULT_DIR defined. Set by default $GMVAULT_DIR to $HOME/.gmvault (C:\Users\Hrafnkell/.gmvault)
Get XOAuth credential from C:\Users\Hrafnkell/.gmvault/email@gmail.com.oauth.

Successfully read oauth credentials.

Connect to Gmail server.
Perform custom synchronisation with request: 'in:labelname'
0 emails to be fetched.
db_cleaning is off so ignore removing deleted emails from disk.

================================================================
Number of reconnections: 0.
Number of emails quarantined: 0.
Number of emails that could not be fetched: 0.
Number of emails that were returned empty by gmail: 0
================================================================

gmvault-shell>gmvault sync -t custom -g 'in:programs' --debug email@gmail.com

Note that searching web gmail for in:labelname returns plenty of results. Running gmvault sync email@gmail.com works fine.

Am I doing something wrong or is this an actual issue?

@ghost ghost assigned gaubert May 22, 2012

@gaubert

This comment has been minimized.

Copy link
Owner

gaubert commented May 22, 2012

@hrafnkell What you are doing is right. I need to check and reproduce that problem.
I will let you in few days because I am very busy this week.
Thanks for reporting the issue

@gaubert

This comment has been minimized.

Copy link
Owner

gaubert commented May 23, 2012

@hrafnkell I have tested it on Mac OSX and it works.
It seems to be a problem on Windows. I will check it tomorrow.

python gmv_cmd.py sync --type custom -g 'in:perso' --debug guillaume.aubert@gmail.com

Use gmvault-db located in /Users/gaubert/gmvault-db.

Activate debugging information.
Debugging logs are going to be saved in file /Users/xxxxx/gmvault.log.

Authentication performed with Gmail XOAuth token.

no ENV variable $GMVAULT_DIR defined. Set by default $GMVAULT_DIR to $HOME/.gmvault (/Users/xxxxx/.gmvault)
Get XOAuth credential from /Users/gaubert/.gmvault/xxxxxxxxxxxxx.oauth.

Successfully read oauth credentials.

Connect to Gmail server.
Perform custom synchronisation with request: in:perso
3971 emails to be fetched.

Process imap id 13
Process email num 0 (imap_id:13) from 2004-10.
metadata for 1150187728613013818 already exists. Check if different.
update email with imap id 13 and gmail id 1150187728613013818.
.....

@gaubert

This comment has been minimized.

Copy link
Owner

gaubert commented May 24, 2012

@hrafnkell I did some investigation and if you use double quotes instead of single quotes, it will work.
gmvault-shell>gmvault sync -t custom -g "in:programs" --debug email@gmail.com

I am not a guru in batch script and the " are eaten by batch while ' is not. I will try to fix it but I need to find a common behaviour between Unixes (where " and ' special characters) and Windows (only " is a special character)

@gaubert

This comment has been minimized.

Copy link
Owner

gaubert commented May 27, 2012

@hrafnkell I have made a fix for supporting gmail or imap custom request under windows with " or ' quotes.
It will be in the next version 1.6-beta.
If you would like to make a test with an intermediate version let me know and I will prepare one for you.

Many thanks

@gaubert gaubert closed this Jun 2, 2012

@hrafnkell

This comment has been minimized.

Copy link
Author

hrafnkell commented Jun 13, 2012

Hi. I appreciate your quick responses. It works fine with double quotes so making single quotes isn't an issue for me. I just didn't realize that windows parsed it differently. Thanks for your help!

@gaubert

This comment has been minimized.

Copy link
Owner

gaubert commented Jun 13, 2012

@hrafnkell You are welcome. On Windows, it will always work with double quotes as with single quotes it will only work under certain conditions. I don't want to do anything fancy to change that as it would break the usual behaviour.
I have also change the examples in the Command line help and replaced single quotes with double quotes. So most of the people should use double quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.