Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get global mail configuration

PF March 16, 2023

How to customize the plug-in to get the global mail configuration switch property value

1 answer

0 votes
PF March 16, 2023

企业微信截图_16790228546165.png

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2023

idk why Im doing this but I obviously need a different hobby even painting aeroplanes or perhaps taking care of some plants like tomatoes or onions.png

since I'm such a good bloke

 

Why do you need these though? Seems like a useless setting to care about.

PF March 19, 2023

I have a custom mail listener that is not controlled by the Email processor, the Email processor is turned off, but the custom mail listener can still process mail

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2023

Well, the selectors are baked inside the page by the servlet, with no public API, nor any hidden ajax calls on the page.

So this leads me to say db is the only place:

SELECT * FROM propertyentry WHERE property_key in ('GLOBAL_PULLER_JOB', 'GLOBAL_PROCESSOR_JOB');
   id   |            entity_name             | entity_id |     property_key     | propertytype
--------+------------------------------------+-----------+----------------------+--------------
169540 | JIRA_MAIL_PROCESSOR_GLOBAL_SETTING |         1 | GLOBAL_PULLER_JOB    |            1
169541 | JIRA_MAIL_PROCESSOR_GLOBAL_SETTING |         1 | GLOBAL_PROCESSOR_JOB |            1
(2 rows)


Getting a 0=off 1=on values:

SELECT propertyvalue FROM propertynumber WHERE id = (SELECT id FROM propertyentry WHERE property_key = 'GLOBAL_PROCESSOR_JOB');
propertyvalue
---------------
             1
(1 row)

and

SELECT propertyvalue FROM propertynumber WHERE id = (SELECT id FROM propertyentry WHERE property_key = 'GLOBAL_PULLER_JOB');
propertyvalue
---------------
             1
(1 row)

 

However, the values do not take into account any JVM flags (and I could only test that this is the table/column on one of the properties, because the other was disabled by a jvm flag, while in db it shows 1).

I still don't quite see why you would want to need these, and given that it is unreliable due to having to dig it up through the db as well as to parse jvm arguments makes it potentially unreliable, I wouldn't personally do this, there should be an easier way than this.

PF March 20, 2023

Because I wrote a custom mail processor plugin, I can just turn off the mail processor when I want to stop processing email

PF March 20, 2023

The status quo is that the email processor switch is off and my email processor is still processing emails

Suggest an answer

Log in or Sign up to answer