Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use multiprocessing instead of mixing signals and threading condvars for process synchronization#246

Merged
rpuntaie merged 1 commit intogetmail6:masterfrom
jymigeon:master
Jul 21, 2025
Merged

Use multiprocessing instead of mixing signals and threading condvars for process synchronization#246
rpuntaie merged 1 commit intogetmail6:masterfrom
jymigeon:master

Conversation

@jymigeon
Copy link
Contributor

An attempt at fixing #245 using multiprocessing . It replaces the whole SIGCHLD handling + condvar threads locking, and rely only on multiprocessing implementation to provide the same features.
Tested on a NetBSD-10 and NetBSD-current host, using the following configuration:

[retriever]
type = SimpleIMAPSSLRetriever
server = REDACTED
port = REDACTED
username = REDACTED
password = REDACTED

[destination]
type = MDA_external
path = /usr/pkg/libexec/dovecot/dovecot-lda
arguments = ("REDACTED", )

[filter-1]
type = Filter_external
path = /usr/pkg/bin/spamc
arguments = ("-t", "10", "-s", "5000000", )

[options]
delete = true
read_all = true
message_log_syslog = true
max_messages_per_session = 100

@rpuntaie rpuntaie merged commit c6efa3a into getmail6:master Jul 21, 2025
1 check passed
@rpuntaie
Copy link
Collaborator

There seems to be a problem on MacOS. See #250. Can you look into this?

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

Successfully merging this pull request may close these issues.

2 participants