-
Notifications
You must be signed in to change notification settings - Fork 20
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
emails are imported more than once #88
Comments
Hey @mmartin-bbw. What email provider are you using in this case? In my testing the seen flag provided by the IMAP protocol works very inconsistent among different email provider implementations. For some it worked for some it was just ignored. In general there should be no duplicates since mail2most stores a unique identifier of the mail in its |
My email provider is hostpoint.ch. I do not know what they are using as an MTA, I just know they run everything on FreeBSD. [
null
] Here is the systemd service definition that I am using: # mail2most
[Unit]
Description=mail2most
[Service]
Type=simple
WorkingDirectory=/opt/mail2most
ExecStart=/opt/mail2most/mail2most -c conf/mail2most.conf
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target |
Hm interesting. That seems to be the issue. Do you see anything in the logs hinting mail2most not able to write the data.json? |
log excerpt via journalctl: |
Are the messages send to mattermost? Can you provide the full log output (don't forget to remove any security relevant information)? |
I can give you some more lines from the output of "journalctl -u mail2most.service --since -5min -f" right around the time when i sent an email to the mail2most email account. I
As you can see, there is even an error, can you tell what the error means? |
i have the same issue it drains the vps bandwith |
tl;dr: configure mattermost user email instead of username worked for me. I see the same behavior.
The problem might be "Invalid or missing email parameter in request URL" The messages are read from the mailserver, the posting to the mattermost channel happens successful. The only think not happening is the writing of the data.json, and therefore the emails are not remembered as read. I played around a bit and even though my mattermost server is configured to allow usernames or emails as login, apparently the api does not. I had to change the username in the mail2most.conf to the mattermost email address. Then the data.json is properly written. |
Describe the bug
I run mail2most as a systemd service. In the config file i use the following filter section:
After an E-Mail gets imported it is still marked as unread. I don't know whether the idea is that the email gets marked as unread or whether mail2most is supposed to keep track of what it already imported in some other way. However, the effect is that the same email gets imported with every time mail2most runs ( every TimesInterval ).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Release version
v1.11.9
Architecture
linux amd64
The text was updated successfully, but these errors were encountered: