Comments (11)
Thanks, with Dovecot we can rule out any strange-behaving mail server. Have you selected a different mailbox while issuing the above commands?
from enough_mail.
Thanks. Can you rule out that you have selected a different folder while issuing these commands? Despite it's name, a UID is only a mailbox-specific ID, so the corresponding folder needs to be selected. The "only" benefit of a UID is that the UID stays the same, even after messages before have been deleted - in contrast to sequence IDs, which do change in that case.
from enough_mail.
Thanks, this seems very much to be a bug in the API, because fetchMessages
should then select the corresponding mailbox. I will check this and report back within the next days.
Glad that you found a workaround!
from enough_mail.
That's interesting. Can you share the used IMAP server?
from enough_mail.
sure, whatever you need. it is "Dovecot", here are the first lines from the logging output
flutter: A: connecting to server xxx.xxxxx.xx:993 - secure: true, timeout: 0:00:10.000000
flutter: S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
flutter: C: a0 LOGIN "[email protected]" "(password scrambled)"
flutter: S: a0 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE] Logged in
flutter: C: a1 ID NIL
flutter: S: * ID ("name" "Dovecot")
flutter: S: a1 OK ID completed (0.001 + 0.000 secs).
flutter: C: a2 ENABLE QRESYNC
flutter: S: * ENABLED QRESYNC
flutter: S: a2 OK Enabled (0.001 + 0.000 secs).
from enough_mail.
now that you mention it, i have already assumed that it has something to do with the folder because it is not in INBOX but next to it. just forgot to test it, now i did and it works when it is within INBOX
Hopefully this can be fixed, because i only need to delete mails in that one special folder called 'Notes'
does not work here:
flutter: C: a4 SELECT "Notes"
works here
flutter: C: a4 SELECT "INBOX.FTagged.Wohnung"
from enough_mail.
If you can rule that out, what is the server response when selecting the Notes mailbox?
from enough_mail.
there you said it.
I did not explicitly select the folder/mailbox because I specified mailbox here
client.fetchMessages(mailbox: mailbox);
and the doc says
Optionally specify the mailbox in case none has been selected before or if another mailbox/folder should be queried.
but now that I did, it works. THANK YOU
await client.selectMailboxByPath(folder); // <-- this did the trick
await client.deleteMessage(messageEntry.key, expunge: false);
from enough_mail.
still don't know why it worked when I just replaced folder 'Notes' with 'INBOX.FTagged.Wohnung'
from enough_mail.
Hi again, I did not find a problem with mailbox selection when fetching messages. The used mailbox should have been selected correctly after issuing the fetchMessages
call. However, I simplified the code and released v2.1.4, which also adds some more fixes and improvements. Can you test your deletion again with that version?
If you still run into the problem, I guess I need to learn more details about your code, specifically: what happens between fetching the messages and then requesting to delete a non-inbox message?
from enough_mail.
sorry for the inconvenience. I was not able to reproduce the problem with minimal code. everything worked as expected. so the problem have to be on my side even although I am not seeing it on first sight. I guess I will also have to simplify my code in order to understand what I did wrong. again sorry and thanks for the help.
from enough_mail.
Related Issues (20)
- Enough Mail with 2FA Accounts HOT 1
- need
- TLS Certificates for connections to IMAP + SMTP
- Unknown feature REQUESTED_WITH_HEADER_CONTROLE HOT 1
- limited number of text in message? HOT 1
- Please, can you update INTL version in Pub.dev? HOT 1
- Decoding header error
- Error: A value of type 'List<int>' can't be assigned to a variable of type 'Uint8List'. HOT 5
- MailClient.listMailboxesAsTree() with a non default pathSeparator HOT 1
- BUG: in serialization of ServerConfig.fromJson() HOT 1
- how to send multipart/related message? HOT 1
- continuation not handled:
- Getting an app to production
- Error: A value of type 'List<int>' can't be assigned to a variable of type 'Uint8List'. HOT 1
- statusMailbox is always returns messagesUnseen = 0 HOT 1
- On search with "before" param: BAD Command Argument Error. 11
- paginate message fetching in `fetchRecentMessages`
- Question: Why is the UIDSEARCH only allowed if the server supports UIDPLUS capability?
- Why can't I idle and make requests at the same time?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enough_mail.