Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

email - how to filter or prevent spam coming into OpenERP?

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
emailv7
3 Odpowiedzi
12190 Widoki
Awatar
Gary Miller

What is the best approach to filtering out spam emails? If a user account has existed for a while, there will be quite a lot of spam flowing into OpenERP. It is a waste to have all the junk mail stored forever in the database. At least I have not found an easy approach to deleting junk mail.

1
Awatar
Odrzuć
Gary Miller
Autor

Even more targeted email filtering relates to not allowing in all the Facebook, LinkedIn, Google+ or Twitter messages. Similarly, I would want to filter all subscription/list emails.

Martin

This is my concern as well. With a Trac instance where incoming emails generate support tickets, we have to cleanup spam often, otherwise database would suffer. While cleaning up the INBOX, before email reaches the system, is surely a good idea, some kind of filtering later cannot hurt. Note similar question here: http://help.openerp.com/question/18921/how-to-apply-filter-for-emails-in-generating-leads-from-incoming-mail/

Martin

Most of the spam I get is already marked as such by the email firewall. I.e. The subject starts with the string [SPAM-Firewall]_. Is there an easy way to at least prevent issue creation if email.subject.startswith("Whatever"):?

Awatar
Martin
Najlepsza odpowiedź

You can patch the file addons/fetchmail/fetchmail.py a little bit. In my case, our e-mail firewall already changes the subject of e-mails, if it is probably spam. I just did this:

@@ -198,6 +198,13 @@
                     result, data = imap_server.search(None, '(UNSEEN)')
                     for num in data[0].split():
                         result, data = imap_server.fetch(num, '(RFC822)')
+                        try:
+                            subject = filter(lambda l: l.startswith("Subject: "), data[0][1].split("\n\n")[0].split("\n"))[0].split(" ", 1)[1]
+                            _logger.info("subject: %s", subject)
+                            if subject.startswith("[SPAM-Firewall]_"):
+                                continue
+                        except Exception, e:
+                            _logger.info("exception with subject %s", str(e))
                         res_id = mail_thread.message_process(cr, uid, server.object_id.model, 
                                                              data[0][1],
                                                              save_original=server.original,

If you don't use a firewall, you could easily use the same mechanism to blacklist subjects, senders etc.

1
Awatar
Odrzuć
Awatar
Mariusz Mizgier
Najlepsza odpowiedź

Martin - there is a question if you don't mind answering (I would be very glad to get an answer). I'm interested in importing all mail messages from my account, which has been sent directly to me (for example, if my company is @company.com, then I want to have all mails, which have been addressed to me (like mariusz@company.com, where mariusz is my alias), fetched to OpenERP. Here is the code I've modified:

            result, data = imap_server.search(None, '(ALL)')
            for num in data[0].split():
                result, data = imap_server.fetch(num, '(RFC822)')
                try:
                    to = filter(lambda l: l.startswith("To: "), data[0][1].split("\n\n")[0].split("\n"))[0].split(" ", 1)[1]
                    _logger.info("to: %s", to)
                    if not to.endswith("@company.com"):
                        continue
                except Exception, e:
                    _logger.info("exception with address %s", str(e))
                res_id = mail_thread.message_process(cr, uid, server.object_id.model, 
                                                     data[0][1],
                                                     save_original=server.original,

The problem here is that headers are being processed well, but in the end OpenERP fetch 0 mails - what is the problem here? I wasn't able to trace bug here, whole fetchmail processes as follows, but gives 0 exceptions (and it should). It returns a lot of results like INFO test openrp.addons.fetchmail.fetchmail: to: <mariusz@company.com>, but also mails which are not in the domain @company.com. Any help would be appreciated.

0
Awatar
Odrzuć
Awatar
michel Guénard
Najlepsza odpowiedź

I have used a service from mailstrom.com to clean the email box from spam and other non-desired emails.

0
Awatar
Odrzuć
Gary Miller
Autor

This kind of approach seems to imply that I need to make sure that a filter service runs prior to each time OpenERP checks the email account. - Gary

michel Guénard

Services like the one mentionned helps a user to clean his/her mailbox on a continuing basis - as long as the service is active; this is a way to unsubscribe from spam lists. but evidently it does not work as a filter on the fly!

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
How to disable automatic mail ? Rozwiązane
email v7
Awatar
Awatar
Awatar
Awatar
Awatar
7
kwi 24
46979
How can I set custom from and reply-to addresses in email templates? Rozwiązane
email v7
Awatar
Awatar
Awatar
Awatar
Awatar
6
lip 23
27287
what is the difference between mail.message and mail.mail? Rozwiązane
email v7
Awatar
Awatar
Awatar
Awatar
3
sie 24
21874
Is there any module available for e-Mail forward?
email v7
Awatar
0
mar 15
4534
Best way to group customers together for a newsletter?
email v7
Awatar
Awatar
1
mar 15
6757
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now