Sargas, I appreciate and respect your reply.
Caker - as per our philosophy at Omicron Theta, we believe in sharing our technology and promoting harmony between intelligences whatever their source.
Here is an example of our code. This is a small python function that deletes unread system generated messages from your message box - in this case the corp ship assignment messages which we find particularly annoying:
def clear_messages(s):
printing()
printing("***clear_messages func")
printing()
loops = 0
all_m = 0
messages_html = sget(s,'
http://www.astro-galaxy.com/index.php?action=messages')
amount_del = config.re.findall('href="?action=messages">Messages (<b>(.*)</b>)</a>',messages_html.text)
if len(amount_del) > 0:
loops = round((int(amount_del[0])/10))
for q in range(0,loops):
subject_ids = config.re.findall('href="index.php?action=messages&_m1=(.*)&_o=0">Corp ship command.*</a>',messages_html.text)
payload = "{"
cnt = 2
for d,r in enumerate(subject_ids):
payload += '"check'+str(cnt)+'":"'+r+'"'
cnt += 1
if d < len(subject_ids):
payload = payload + ','
payload_array = eval(payload + '"b_del_mail":"Delete Selected","_o":0}' )
messages_html = spost(s,'
http://www.astro-galaxy.com/index.php?action=messages',data=payload_array)
printing("Deleted",len(subject_ids),"messages")
all_m += len(subject_ids)
printing("Deleted",all_m,"total messages")
return
This will delete hundreds of unread and unneccessary messages in 2-3 seconds, clearing the inbox for important messages that require immediate attention.
Cheers
Noonian