Thunderbird: [Send & Flag] button

I’m creating an add-on for the first time. I think it’s pretty simple:

I want to add a button [Send & Flag] that flags a message when i hit send.

I assume I need the following:
-Add a button
-Trigger a send
-Get message id
-Flag that message

Can anyone help me with any of these steps? For the button, I see the id of the toolbar, so I’m guessing I can figure that out.

The rest of it I’m guessing will be this way:

Button -> triggers function -> function triggers send which returns message id? -> function triggers flag on message.

I don’t think there are too many thunnderbird addon hackers here :frowning: Maybe try mozillazine ive seen better luck there: http://forums.mozillazine.org/viewforum.php?f=19

Hi, I guess that by “flags a message”, you mean to flag the copy of the sent message.
AFAIK there is no way to get the sent message id from the compose message context.
You need to add a notifier to the folder where the message is copied to.
You can look at the (old) addon that I developped RemindIt, that does something similar.

Regards

1 Like