Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Thunderbird Extension Problem

  • 03-02-2006 1:24am
    #1
    Closed Accounts Posts: 201 ✭✭


    Hi,

    I am writing a Thunderbird Extension and I have been having a problem labelling messages as important in code.

    You know when a message is in the inbox you can right click it and label it as personal,work,important etc.

    Basically my code grabs the content of the message analyzes it and this analysis gives back an urgency threshold between 0 and 1 and lets say if the urgency is above .5 I want to label that message as important.


    I have been looking through www.xulplanet.com and this is all I can find

    http://xulplanet.com/references/xpcomref/ifaces/nsMsgViewCommandType.html
    The constant nsMsgViewCommandTypeValue.label1 is what I am looking for as it should change the label of an inbox message to important.

    However the proble I am having is that I have only been able to find one way of applying this constant and that is here.
    http://xulplanet.com/references/xpcomref/ifaces/nsIMsgDBView.html

    The doCommand method of nslMsgDBView takes one of the nsMsgViewCommandTypeValue arguments above but I thought this is strange because surely you would only want to change the label of one message at a time.I was wondering if you know any way to apply this to a single message rather than to the DBView which is if I am not mistaken the entire inbox.

    Anyone had any experience trying to acheive something like this??


Advertisement