S
Sagar Thakur
I have written Some Scripts in Power-shell & Python to read mail body contents, But when i run the script some alert-box comes. and inform to check antivirus is updated, and only provide max 10 minutes prevention from this alert box after 10 min same alert came.
i need permanent allow access or how could i avoid this alert permanently. please help me.
This alert comes when i want to read Body Part.
i can read Subject without this warning.
i tried by stopping all antivirus service and run script but same alert-box comes.
My Code in Python:
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
#### Search in INBOX
# messages = inbox.Items
### Search in SubFolder in Inbox
subFolder = inbox.Folders.Item('Sophos') # 'Sophos is folder name inside INBOX'
messages = subFolder.Items
msg = messages.GetLast()
msg_body = msg.body.split('\n')
print(msg_body)
when Code comes to read mail message Body, alert comes.
Note-: When i run this same script on Normal windows-Os(windows 10) it running successfully. and i am able to read Outlook mail.
Please Help me to resolve issue.
Thank You.
Continue reading...
i need permanent allow access or how could i avoid this alert permanently. please help me.
This alert comes when i want to read Body Part.
i can read Subject without this warning.
i tried by stopping all antivirus service and run script but same alert-box comes.
My Code in Python:
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
#### Search in INBOX
# messages = inbox.Items
### Search in SubFolder in Inbox
subFolder = inbox.Folders.Item('Sophos') # 'Sophos is folder name inside INBOX'
messages = subFolder.Items
msg = messages.GetLast()
msg_body = msg.body.split('\n')
print(msg_body)
when Code comes to read mail message Body, alert comes.
Note-: When i run this same script on Normal windows-Os(windows 10) it running successfully. and i am able to read Outlook mail.
Please Help me to resolve issue.
Thank You.
Continue reading...