quickmove-extension
quickmove-extension copied to clipboard
add hotkeys for filing into specific folder per account (for archiving messages)
Would it be possible to add a hotkey that instantly moves a message to a specified folder per account (and ideally also marks the message read). This would be great for archiving emails.
That would be a nice and powerfull option.
A workaround that might help you today is using the 'a' key that Thunderbird has by default for archiving. When you combine that with a filter rule with 'Apply filter when: Archiving' then you can let the 'a' key archive messages from/to a spocific address to a specific folder, and do more actions.
That would certainly be very interesting. If you'd like to test another add-on in the meanwhile that may provide this kind of functionality, check out http://quickfolders.org/
I wouldn't mind preparing a side loading version of QMF by adding hardcoded paths to move messages to certain folders using shortcuts
I know I can add new shortcuts here https://github.com/kewisch/quickmove-extension/blob/master/src/api/quickmove.js#L76
and call a new functions in https://github.com/kewisch/quickmove-extension/blob/master/src/content/quickmove.js
So all I would need to know is the code to move a message
openFile2: function() { // example function
// how to define "folder" object
// Account/Inbox/Project1
// Account/Inbox/Project2
// etc
MsgMoveMessage(folder);
},
Questions:
- I find it hard to find examples of how to do this, could you provide an example code of how to define a folder?
- Is
MsgMoveMessage(folder);
all you need to call to move the currently active email message(s)?
fwiw I think the best way to implement this with the current add-on is to provide (default-off) functionality that would automatically move messages into a folder if certain tags are applied. With #44 now fixed, you'd either use the popup to apply a tag, or use the 1–9 keys to apply one directly. This way you can move them fairly quickly.