Skip to content

Instantly share code, notes, and snippets.

@gaubert
Last active December 11, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaubert/4584713 to your computer and use it in GitHub Desktop.
Save gaubert/4584713 to your computer and use it in GitHub Desktop.
Example of use of -label with Gmvault-1.7-beta on Linux
A) Without -label in search
------------------------
gmv@gmvault:~/old-versions/v1.7/bin$ ./gmvault sync xxxxxx@gmail.com -t custom -g "diptyque" -c no
Use gmvault-db located in /home/gmv/gmvault-db.
Disable deletion of emails that are in Gmvault db and not anymore in Gmail.
Authentication performed with Gmail XOAuth token.
Get XOAuth credential from /home/gmv/.gmvault/xxxxx@gmail.com.oauth.
Successfully read oauth credentials.
Connect to Gmail server.
Perform custom synchronisation with gmail request: diptyque.
Start emails synchronization.
3 emails to be fetched.
Process email num 0 (imap_id:47892) from 2012-12.
Process email num 1 (imap_id:48046) from 2012-12.
Process email num 2 (imap_id:48047) from 2012-12.
Start chats synchronization.
0 chat messages to be fetched.
Synchronisation operation performed in 2s.
================================================================
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
================================================================
B) With -label in search
------------------------
gmv@gmvault:~/old-versions/v1.7/bin$ ./gmvault sync xxxxxx@gmail.com -t custom -g "-label:perso diptyque" -c no
Use gmvault-db located in /home/gmv/gmvault-db.
Disable deletion of emails that are in Gmvault db and not anymore in Gmail.
Authentication performed with Gmail XOAuth token.
Get XOAuth credential from /home/gmv/.gmvault/xxxxxx@gmail.com.oauth.
Successfully read oauth credentials.
Connect to Gmail server.
Perform custom synchronisation with gmail request: -label:perso diptyque.
Start emails synchronization.
0 emails to be fetched.
Start chats synchronization.
0 chat messages to be fetched.
Synchronisation operation performed in 1s.
================================================================
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
================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment