quickmove-extension icon indicating copy to clipboard operation
quickmove-extension copied to clipboard

add hotkeys for filing into specific folder per account (for archiving messages)

Open ctr opened this issue 4 years ago • 4 comments

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.

ctr avatar Apr 02 '20 09:04 ctr

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.

helmo avatar Apr 02 '20 11:04 helmo

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/

kewisch avatar Aug 24 '20 11:08 kewisch

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:

  1. I find it hard to find examples of how to do this, could you provide an example code of how to define a folder?
  2. Is MsgMoveMessage(folder); all you need to call to move the currently active email message(s)?

hi5 avatar Oct 04 '20 09:10 hi5

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.

kewisch avatar Aug 21 '23 09:08 kewisch