O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.65k stars 419 forks source link

How to ignore email signature files #1065

Open parad0x96 opened 5 months ago

parad0x96 commented 5 months ago

How to ignore email signature files while downloading attachments using the mailbox ?

I noticed that the images in the signature are named image001.jpg and so on. Also these signature files has is_inline flag set as True is this always the case ?

alejcas commented 4 months ago

I don't know of any automatic method to ignore these images

parad0x96 commented 4 months ago

Hey @alejcas, this code seems to ignore signature files

for att in message.attachments:
      if att.is_inline:
            continue