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

[MODULE] - Email cleaner #328

Open
SvenjaKern opened this issue Aug 8, 2023 · 1 comment
Open

[MODULE] - Email cleaner #328

SvenjaKern opened this issue Aug 8, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@SvenjaKern
Copy link
Contributor

Please describe the module you would like to add to bricks
A brick that scans through the email and get rid of unnecessary information, e.g. Disclaimer, signiture, logos etc.

Do you already have an implementation?
most of it can be used with re. for example:

import re
disclaimer = re.sub(r"Disclaimer.*?(?=$)", text, re.IGNORECASE)
image = re.sub("\[cid:image.*?(?=\])", text, re.IGNORECASE)
external = re.findall("EXTERNAL EMAIL.*?(?=\.)", text, re.IGNORECASE)
signature = re.sub(r"signature",text, re.IGNORECASE)
@SvenjaKern SvenjaKern added the enhancement New feature or request label Aug 8, 2023
@SvenjaKern SvenjaKern self-assigned this Aug 8, 2023
@SvenjaKern
Copy link
Contributor Author

I made a first attempt for this brick.

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

No branches or pull requests

1 participant