nostalgy-xpi icon indicating copy to clipboard operation
nostalgy-xpi copied to clipboard

[Feature request] Semi-automatically generate rule

Open sphh opened this issue 3 years ago • 4 comments

I just installed the Autofile add-on and I like the idea. Could a similar feature be included into Nostalgy?

I can think of opening the "Add a new Nostalgy rule" dialog on pressing a hotkey with some sensible values pre-filled in, e.g. ☑ From: ☐ To: ☐ Subject: ☐ when message is under folder: then save to: [Open Rules dialog] [Cancel] [Save rule] [Save+Move] (where the three entries "From:" "To:" "Subject:" are mutually exclusive options)

That would help enormously to write those rules!

sphh avatar Mar 24 '21 11:03 sphh

there is the convert last move to rule action. Doesn't that do what you want? Or how should it be extended?

So first you do the move the way you want it to work. Next, by using the convert, a corresponding rule is created and pre-filled.

Klaus

opto avatar Mar 25 '21 14:03 opto

This feature falls under the "Best hidden, but very useful features" category!

I now looked into the Nostalgy++ usage directions… and found in the "Rules section", that I have to press n. Unfortunately that moves me to the next unread mail message and does not open any rules dialog. Going to settings I noticed, that the hotkey for Create new rule was not set. (Should this be updated in the usage directions?)

After setting the hotkey for Convert to new rule, this gets close to Autofile, but in my view has three drawback:

  1. I have to first move the message and then I can add the rule. I would prefer to have this functionality combined into one action.
  2. After adding the new rule, I also have to exit the Nostalgy Preferences dialog. I would prefer not to have that extra confirmation.
  3. Neither the address nor the subject is pre-filled.

Items 1. and 2. concern mainly streamlining the user experience. Item 3. is a major drawback, since I have to remember the email address or the subject to enter it into the substring field (or copy it beforehand, but I always forget this!). Populating the substring field would make this so much easier! (But then you might need three mutually exclusive fields as outlined in my original post.)

sphh avatar Mar 25 '21 16:03 sphh

thanks for your comments.

  1. n not working: yes, it seems to be a new 'feature' of TB that it grabs the letters everywhere, even in conditions where they do not apply (some keys are grabbed by the foldertree, for example, although they have no function in the foldertree).

  2. for the rest, I will keep it as feature request. For a future version of TB, this dialog needs to be transfered/converted into the new addon system, anyway. That will be a good point in time to add the features.

opto avatar Mar 25 '21 18:03 opto

Just a tiny reminder for the future, so that this is not forgotten at the time of implementation: The Add new rule called from TB's message window should be a separate dialog and not being opened in a tabbed page (which would be ok for adding a new rule from the rules page).

sphh avatar Mar 25 '21 18:03 sphh