-
Notifications
You must be signed in to change notification settings - Fork 96
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
sup-tweak-labels: sync back if specified #300
Conversation
Thanks for the PR. Actually; looking a bit more closely at the sync_back routines I saw that sync_back is guarded on each source anyway in Message::Location. Your code (and my original) will also not work quite as we expect since a Message will have many sources, Since a sync_back is guarded already for the global option (we can still keep the guard in -tweak-labels) and it is guarded per-source already, I think that the more appropriate solution is to rather have a |
Those were my thoughts exactly, to add a |
Excerpts from Wael M. Nasreddine's message of 2014-04-30 20:01:17 +0200:
that would be great! apparently not many people use tweak-back, it's |
I changed it so the index never sync back and the message itself sync_back if it can. |
Squashed commit of the following: commit ebfb333 Author: Wael M. Nasreddine <[email protected]> Date: Wed Apr 30 22:26:10 2014 -0700 sup-tweak-labels: add a newline before the begin commit f1d51d3 Author: Wael M. Nasreddine <[email protected]> Date: Wed Apr 30 22:22:23 2014 -0700 sup-tweak-labels: sync_back (honor the settings global and source) and provide an override commit c43319a Author: Wael M. Nasreddine <[email protected]> Date: Tue Apr 29 15:54:01 2014 -0700 sup-tweak-labels: sync back if specified
Merged. Thanks. |
RE: #295
sup-tweak will only sync back if
1 - :sync_back_to_maildir is set to true (in
~/.sup/config.yml
)2 - sup-tweak was ran with the option
--sync-back
3 - The modified email comes from a source with sync_back enabled (in
~/.sup/sources.yml
)