Comments (15)
Is this GMail? If so, once you add the Deleted flag, GMail moves the message to the Trash folder so client.Inbox.Expunge(...)
won't do anything.
(Note: unless you change GMail's user Settings to make it behave like a normal IMAP server).
from mailkit.
Yes this is gmail, the client i'm developing will be used for alot of IMAPs
What are your suggestions?
from mailkit.
I don't know what can be done. You'll have to experiment. Maybe you can expunge the Trash folder.
from mailkit.
I have tried expunging the Trash folder after moving it, still shows as a reply or a thread, I'm really confused and don't know where the problem is...
from mailkit.
Does GMail support ImapCapabilities.Replace
? If so, you can use client.Inbox.Replace() methods.
from mailkit.
What is IReplaceRequest
? How to use this inside this method?
Edit: GMail doesn't support replace ..
from mailkit.
The ReplaceRequest class implements the IReplaceRequest interface.
from mailkit.
I tried it and it does nothing, either with a MimeMessage or a ReplaceRequest..
Maybe if you know an existing solution or someone who have done this before so I could investigate further?
from mailkit.
I don't know if anyone trying to do what you are trying to do.
from mailkit.
I'm just trying to edit a message and save the new version of it (in-place) or atleast delete older one, add the new one but with old date etc, but if same subject it will still bring old one for some reason idk why..
from mailkit.
Instead of deleting the message on GMail, move it to the Trash folder (which will return the uid of the message as it will be in the Trash folder). Then open the Trash folder and expunge that uid.
In other words:
var trash = client.GetFolder (SpecialFolder.Trash);
var trashUid = client.Inbox.MoveTo(uid, trash);
trash.Open(FolderAccess.ReadWrite);
trash.Expunge(new UniqueId[] { trashUid });
from mailkit.
I tried your code..
The message gets moved to trash, but the expunge doesn't do anything
Anyway continued with the code, and when saving new messages, it shows the old message without the new edits.
from mailkit.
Sounds like it's just a feature of GMail then.
What you are trying to do is very non-standard behavior outside of Draft messages saved in the Drafts folder.
from mailkit.
So other IMAPs will work as expected using the whole code discussed here?
from mailkit.
Yes
from mailkit.
Related Issues (20)
- MimeMessage.TextBody not returning body HOT 3
- Code style: use <inheritdoc cref="..."> instead of copying doc HOT 5
- I get a couple of compile errors when updating MailKitLite from 4.3.0 to 4.4.0 HOT 2
- MimeMessage.Subject == null throws off the MailVisitor.
- Regression: Nested signed mail showed as nameless.eml HOT 3
- Question: Logging EHLO Response in DB HOT 2
- XLIST IMAP command being sent automatically on AuthenticateAsync HOT 3
- UTF-8 not supported ?! HOT 1
- client_credentials flow fails for SMTP Office 365 HOT 1
- Special Character on Password HOT 3
- MailKit Login Issue: Stalling on Inbox Access HOT 2
- With version 4.4.0 I cannot send SMTP mail via Strato.de HOT 11
- Cannot delete message from IMPAP account. HOT 4
- Accessing the IP address of devices logged into the e-mail account HOT 1
- Recieved MimeMessage contains wrong embedded Images HOT 1
- IMAP client connected and authenticated but Inbox returns null HOT 4
- in the sample project of imapidle, is it possible to add a sample method for how to cancel the "IDLE" mode. thanks! HOT 2
- SmtpProtocolException - Last Smtp Response before failure HOT 6
- SMTP not working with Strato.de HOT 4
- SmtpClient Exception Behavior Change in 4.4.0 HOT 26
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 mailkit.