mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #200] Email import seems to mark all emails as read (gmail) #160
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chrismast on GitHub (Nov 4, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/200
Originally assigned to: @ciur on GitHub.
Description
Prelude: I actually run the linuxserver.io docker image whereas I think this might be more related to papermerge than the docker image. If I am wrong, let me know and I gladly open a ticket on their git.
Description: I configured papermerge and all works very well. I also did setup watching an email folder which in my case at the moment is my regular Gmail inbox based on a keyword. It seems though that all my incoming emails are marked as read right away (I assume papermerge is looking for the keyword, hence they are marked as read?).
Expected
Only mark emails containing the keyword as read.
Actual
See above.
If there is no real solution to this, does papermerge accept gmail labels? (As gmail does not really have folders anymore). Or do I have to setup a new dedicated email address?
Info:
@ciur commented on GitHub (Nov 4, 2020):
@chrismast, I thank you for opening this bug.
I had a look at the issue, and you are completely right - Papermerge reads all emails (marks them as read).
Your ticket helped me to spot that mail secret is ignored :(. I will open a separate bug about email secret setting.
Correct!
No, it does not. It is a good idea though. However, it depends on what "gmail labels" are. If "gmail labels" are standard IMAP folders (i.e. folders as per IMAP protocol) then it won't be that difficult to add that sort of filter.
Thank you for your heads up!
@chrismast commented on GitHub (Nov 4, 2020):
@ciur thanks. Gmail introduced labels to replace folders a while ago. It seems though as in the IMAP protocol they are indeed treated as folders (see attached link).
Will try it tomorrow on my setup.
https://developers.google.com/gmail/imap/imap-extensions#:~:text=Gmail%20treats%20labels%20as%20folders,in%20the%20list%20of%20labels.
@chrismast commented on GitHub (Nov 5, 2020):
@ciur
Did some testing with labels/folders in gmail and different setups of papermerge.config.py.
It is indeed confirmed that the mail secret it not used.
Further, I created a label called "Papermerge" and tried the following scenarios:
Tried a few other combinations but neither worked.
Let me know if I can help with testing somehow, happy to do so.