opened
silberzwiebel
username_0
**Describe the bug**
New e-mails are not posted to Mattermost, if you have previously deleted old e-mails from your e-mail account. You will need to receive as many new e-mails as you have deleted to get a new mattermost message.
This is very likely because `mail2most` seems to only count the mails it has posted but not the content to decide whether it will post a new notification (reasoning from the content of `data.json`).

**To Reproduce**
Steps to reproduce the behavior:
1. Delete an e-mail in your watched folder
2. send a new test e-mail to your wached e-mail account
3. no mattermost message for this new e-mail (the log says, this e-mail is already posted)

**Expected behavior**
No matter how many e-mails you delete, every *new* e-mail should result in a new mattermost message.

**Release version**
v1.1.0, arm version


**Additional context**
I'm running mattermost on a raspberry pi, with [these unofficial releases](https://github.com/SmartHoneybee/ubiquitous-memory).
new e-mails are not posted if you have deleted e-mails
issue
created
cseeger-epages
username_1
@username_0 what email server do you use ?
comment
created
silberzwiebel
username_0
mail.lima-city.de
comment
created
cseeger-epages
username_1
Looks like a classic POSTFIX roundcube combination ill try to reproduce the issue tomorrow. 

This seems to be a problem of the reusage of mail id's maybe i find a better way to recognize if the mail is already send. My test mailserver never reuses mail id's but that maybe handled differently by different mailservers.
comment
created
cseeger-epages
username_1
I fixed the uid to use the correct uid from the mail server and not the sequence number. Please delete your `data.json` on the first start you will get all new mails passing your filter since no ids are cached but then deleting shouldn't be an issue. Can you confirm its working now ?

[linux-arm.tar.gz](https://github.com/username_1/mail2most/files/3470997/linux-arm.tar.gz)
[linux-arm64.tar.gz](https://github.com/username_1/mail2most/files/3470998/linux-arm64.tar.gz)
comment
closed
silberzwiebel
username_0
issue
created
silberzwiebel
username_0
Works now, thanks!
comment