Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore email signature files #1065

Open
parad0x96 opened this issue Apr 16, 2024 · 2 comments
Open

How to ignore email signature files #1065

parad0x96 opened this issue Apr 16, 2024 · 2 comments

Comments

@parad0x96
Copy link

parad0x96 commented Apr 16, 2024

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
Copy link
Member

alejcas commented May 16, 2024

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

@parad0x96
Copy link
Author

Hey @alejcas, this code seems to ignore signature files

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants