diff --git a/README.md b/README.md
index 2547e9864a9..c34eefafb32 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ addon | version | maintainers | summary
[database_size](database_size/) | 18.0.1.0.2 | | Database Size
[dbfilter_from_header](dbfilter_from_header/) | 18.0.1.0.0 | | Filter databases with HTTP headers
[excel_import_export](excel_import_export/) | 18.0.1.0.0 |
| Base module for developing Excel import/export/report
-[fetchmail_attach_from_folder](fetchmail_attach_from_folder/) | 18.0.1.1.0 |
| Attach mails in an IMAP folder to existing objects
+[fetchmail_attach_from_folder](fetchmail_attach_from_folder/) | 18.0.1.2.0 |
| Attach mails in an IMAP folder to existing objects
[fetchmail_notify_error_to_sender](fetchmail_notify_error_to_sender/) | 18.0.1.0.0 | | If fetching mails gives error, send an email to sender
[html_text](html_text/) | 18.0.1.0.0 | | Generate excerpts from any HTML field
[iap_alternative_provider](iap_alternative_provider/) | 18.0.1.0.0 |
| Base module for providing alternative provider for iap apps
diff --git a/fetchmail_attach_from_folder/README.rst b/fetchmail_attach_from_folder/README.rst
index efecb7f4e02..dbf8d571a9a 100644
--- a/fetchmail_attach_from_folder/README.rst
+++ b/fetchmail_attach_from_folder/README.rst
@@ -11,7 +11,7 @@ Email gateway - folders
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:ab65e43855bfb568a640043322dc68354fa2d392958a160fb7b4b14d4c5ed9c0
+ !! source digest: sha256:4af6875cf9d000c6b3091a6c84d7a730fd5065af44b37fa453267dc90f08507c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/fetchmail_attach_from_folder/__manifest__.py b/fetchmail_attach_from_folder/__manifest__.py
index 0a786bb1cc6..33fb4f685c9 100644
--- a/fetchmail_attach_from_folder/__manifest__.py
+++ b/fetchmail_attach_from_folder/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Email gateway - folders",
"summary": "Attach mails in an IMAP folder to existing objects",
- "version": "18.0.1.1.0",
+ "version": "18.0.1.2.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"maintainers": ["NL66278"],
"website": "https://github.com/OCA/server-tools",
diff --git a/fetchmail_attach_from_folder/models/fetchmail_server.py b/fetchmail_attach_from_folder/models/fetchmail_server.py
index a42f8c35644..cc43ba6a6cd 100644
--- a/fetchmail_attach_from_folder/models/fetchmail_server.py
+++ b/fetchmail_attach_from_folder/models/fetchmail_server.py
@@ -71,10 +71,10 @@ def onchange_server_type(self):
self.state = "draft"
return result
- def fetch_mail(self):
+ def fetch_mail(self, **kwargs):
result = True
for this in self:
if not this.folders_only:
- result = result and super(FetchmailServer, this).fetch_mail()
+ result = result and super(FetchmailServer, this).fetch_mail(**kwargs)
this.folder_ids.fetch_mail()
return result
diff --git a/fetchmail_attach_from_folder/static/description/index.html b/fetchmail_attach_from_folder/static/description/index.html
index 5066fe23a49..8efa87dedd2 100644
--- a/fetchmail_attach_from_folder/static/description/index.html
+++ b/fetchmail_attach_from_folder/static/description/index.html
@@ -372,7 +372,7 @@
Adds the possibility to attach emails from a certain IMAP folder to