-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add --google-takeout-flagged-labels #51
base: master
Are you sure you want to change the base?
Conversation
By default only Important mails are marked as flagged. Add an option to provide a comma separated list of labels to specify which mails will be marked as flagged.
@@ -119,7 +121,8 @@ def __init__(self): | |||
google_takeout_first_label=False, | |||
google_takeout_label_priority="", | |||
google_takeout_language="en", | |||
debug=False, | |||
google_takeout_flagged_labels="", | |||
debug=False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this even run?
Shouldn't debug=False
be debug=False,
(with a comma) as it's not the latest parametre?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry - had to rebase and did not test... will fix that..
@@ -260,6 +263,7 @@ def __init__(self, total_count, google_takeout=False, google_takeout_first_label | |||
self.google_takeout_first_label = google_takeout_first_label | |||
self.google_takeout_label_priority = google_takeout_label_priority | |||
self.google_takeout_language = google_takeout_language | |||
self.google_takeout_flagged_labels = google_takeout_flagged_labels.split(',') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about someone using:
--google-takeout-flagged-labels='"My spaced label","My spaced with commas, label", "NonSpacedLabel"'
?
Please check csv_file
in the current code where I implemented a parser for these edge-corner cases.
By default only Important mails are marked as flagged. Add an option to
provide a comma separated list of labels to specify which mails will be
marked as flagged.