Code Monkey home page Code Monkey logo

Comments (11)

robert-virkus avatar robert-virkus commented on August 16, 2024 1

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.

robert-virkus avatar robert-virkus commented on August 16, 2024 1

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.

robert-virkus avatar robert-virkus commented on August 16, 2024 1

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.

robert-virkus avatar robert-virkus commented on August 16, 2024

That's interesting. Can you share the used IMAP server?

from enough_mail.

filly82 avatar filly82 commented on August 16, 2024

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.

filly82 avatar filly82 commented on August 16, 2024

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.

robert-virkus avatar robert-virkus commented on August 16, 2024

If you can rule that out, what is the server response when selecting the Notes mailbox?

from enough_mail.

filly82 avatar filly82 commented on August 16, 2024

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.

filly82 avatar filly82 commented on August 16, 2024

still don't know why it worked when I just replaced folder 'Notes' with 'INBOX.FTagged.Wohnung'

from enough_mail.

robert-virkus avatar robert-virkus commented on August 16, 2024

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.

filly82 avatar filly82 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.