Skip to content

bad user: root error while performing action #156

Description

@ellegance

I am running fdm on very limited environment where only root is present. Using this .conf:

set default-user "root"
set command-user "root"

account "root" imaps
server "A"
user "B"
pass "C"

action "save_mail" write "/tmp/root/mail.txt"

match "^From:.*D" in headers actions { "save_mail" }

-vvvv output is:

options are: verify-certificates, maximum-size=33554432, timeout=900, default-user="root", command-user="root", file-umask=077, queue-high=2, queue-low=1, strip-characters="<>$%^&*|{}[]"'`;"
...
root: tried regexp "^From:.*D" in headers, result now 1
root: finished rule 1, result 1
root: matched to rule 1
root: looking for actions matching: save_mail
root: found 1 actions
root: bad user: root
root: match message 1, error
root: fetching error. aborted
root: 0 messages processed in 5.461 seconds
root: finished processing. exiting
root: sending exit message to parent
parent: got message type 1, id 0 from child 27445
parent: sending exit message to child 27445
parent: 1 children, 0 dead children
root: waiting for exit message from parent
parent: 1 children, 0 dead children
parent: child 27445 socket error
parent: 1 children, 0 dead children
parent: waiting for children
parent: child 27445 returned 1
parent: waiting for children
parent: waiting for children
parent: finished, total time 5.466 seconds

So fdm connects to email server, finds first mail matching criteria and then crashes with error
Could you please specify what should be done to fix this issue?
This issue makes me mad. I spent hours and cannot understand how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions