Sync rules between computers

Hey, I found a workaround to import, export, which might be helpful for someone. So here it is:

  1. Open mailspring on your computer with the up to date mail rules
  2. Open the developer tools via the menu “Developer” > “Toggle Developer Tools” → a developer tool window should open
  3. Go to the application tab in the developer tools (you might have to use the “>>” icon to view all tabs)
  4. Select the “Storage” > “Local Storage” > “file://” item in the left navigation of the developer tools application tab → you should now see some entries with “Key” and “Value”
  5. Rightclick on the value of the entry with key “MailRules-V2”
  6. Click “Edit value” in the context menu
  7. Copy the complete value (starting with “[” and ending with “]”)
  8. Transfer this text over to your other computer(s)
  9. Open mailspring on the other computer, open developer tools and go to the same storage (Application > Local Storage > file:// > MailRules-V2)
  10. Edit the “MailRules-V2” there and paste the text from the first computer
  11. Restart Mailspring (on Ubuntu clicking on the X is not enough, you have to actually quit mailspring from the top activity bar
  12. The rules from the other computer should now be applied :tada:

Things to keep in mind:

  • this deletes all the rules that you previously had on the “other computer”
  • I have only tested it on my Ubuntu, Mac setup with a few accounts. No guarantee that it works with all setups

I hope, this is helpful to anyone. A nice way to import, export would of course be nicer, since this workaround is quite cumbersome.

Cheers!