How to move message to Trash folder using IMAP? - ios

Spent hell lot of time to find a proper way to move or delete messages but didn't found any. Every email service acts different. Please help =(
When I try to perform "set delete flag > expunge"...
aol.com and outlook.com - email just disappears without being copied to "Trash".
gmail.com - email is copied to "All".
mail.ru - the only case where it goes to "Trash" after expunge.
I checked on Thunderbird logs and I saw that when user wants to "Delete" a message it just performs default IMAP "Move" operation. I tried to emulate it with "copy > set delete flag > expunge", but result wasn't the same...
gmail.com - two copies of deleted email in "All" and "Trash" folders.
mail.ru - two copies of deleted email in "Trash" folder.
aol.com and outlook.com - haven't checked yet.
Seems like without "Move" all tries to delete or move a message to a different folder are useless...

Not all IMAP servers will have a Trash folder, since it does not exist in the IMAP RFC. (To find out which folders exist, use the LIST command.)
The world has changed a lot since the IMAP RFC was written, and many users expect a kind of Trash folder with restore/undelete capability. So servers and clients bend the RFC a little to emulate that behaviour. I would suggest that you make your behaviour configurable on your client (e.g. with a setting called something like "Move messages to trash when deleted?") This is what a lot of clients do (e.g. K9 mail)

Related

Dovecot ACL Configuration

The following is what i am trying to achieve:
users are allowed to move email between folders, but not fully delete the message.
Using the dovecot ACL:
user=arjo#xxx.nl lrwsip
This translates to:
Lookup, Read, Write, Write-seen, Insert, Post
In a sense, because i dont have the T flag, (Write-Deleted) means that nothing is allowt to be deleted.
Roundcube works somewhat okay, it does not allow me to delete a message. However, it does not allow me to move a message. (which i do want to do)
Outlook does move the messages, but it can not delete them. This makes it so that it creates the messages in the new folder, but they stay behind in the old folder. (it makes a copy).
What should i do to make this function properly?
System setup:
Centos 7
Directadmin 1.5
Dovecot/exim

VS 2012 publishing a webside 2 big problems

I am new to coding and everytime I ask a question I feel like stupid because I mostly am unfamiliar with most known things in this "industry" so I will sum up the whole situation fastly.
I learned how to code html css and js, I learned how to use VS 2012 asp.net mvc 4 and finally I made a webside for a student club I am into. Hosting is provided by our school and they only gave me ftp user name and password, I dont know which hosting firm is it or what is going on and so on, I got Filezilla to delete and unpublish the old webside, and I didnt know a proper way to publish asp.net websides through filezilla so I used VS 2012 publish tool.
I choosed FTP as publish method because I had ftp user name... I choosed relase as configuration and thats it ( I didnt open options here ) finally I could push on publish...
I faced 2 main problems so I couldnt publish
Problems I faced were;
1) While I was trying to publish I got an error like
" Validation (HTML5): Element 'a' must not be nested within element 'a button' "
I was trying to make a nav with sub items on it, It worked while I was trying it on local host I saw similar problems spoken out here on VS 2010 I tried to make exstensions to VS didnt work out
Anyway I deleted that part from the project and I tried publishing again.
2)It worked out perfect it seemed like no problem occoured. But when I try to open the webside it was saying I had no permisson to view.
I hope I didnt write any off topic staff here just try to tell you my problems so maybe someone can get help like I did from prior topics.
" Validation (HTML5): Element 'a' must not be nested within element 'a
button' "
You cannot have one anchor tag inside another anchor tag. If you have it that will cause you the problem.
Check out this thread to find out valid elements which can be nested inside an Anchor tag.
I had no permisson to view.
You need to give proper read/write permissions for the ApplicationPool Identity on the folder structure you have for your website. Or else IIS Apppool will not be able to get the files and execute them.
Give permissions to AppPool Identity for a particular folder/file. That resource will guide you one how to give you permissions to Application Pool Identity.
Alternatively you can give permissions from FileZilla itself. Simply right click the application root folder and select permissions. Then you can specify permissions from client side itself. But in most of the production cases, we have to add app pool user to the folder/file permissions list manually. But definitely give a try with FileZilla.

UmbracoExamine ExternalIndexer Cannot index queue items, the index is currently locked

We get this error a lot on our Umbraco site, also we've noticed that when we publish content, it doesn't actually publish it, then I check the log and I see this error message.
Is this because there maybe more than one admin user logged in at one time?
Pete
Having more than one admin user logged in at the same time is not a problem at all. There's plenty of running sites with many backoffice users logged in and editing at the same time. The only case where this could give an issue is the fact that if you have two users load up the same item in the backoffice and one makes changes and saves.. and the other one then saves without reloading first, the changes from user1 will be overwritten by whatever was loaded when user2 loaded up the page.
One thing that could lock up your indexes however is having multiple sites run off the same index files (which is NOT supported) - so make sure you're not doing this. I've seen some people forgetting having an old IIS test site configured in the same folder after going in production which could bring up this issue.
Another thing that I usually do is exclude the index folders from both anti-virus scanning and the windows indexing service, as I've seen both of these take temporary file locks which sometimes interfere with umbraco's access to the index files. The indexing can be turned off by right-clicking the specific folder in explorer, selecting properties > advanced > uncheck the 'allow files to be indexed'.

thunderbird extension - iterate over messages in a folder

I'm writing a thunderbird extension that should monitor one or more folders (from the left pane of the application) and if there are messages added to one of the monitored folders, they are sent automatically via webdav to a server (for archiving).
I found here how to iterate over all folders in all accounts. My question is how can I iterate over the messages (mails) in a folder
The nsiMsgFolder interface should provide everything you need. If you want to react on incoming messages, I'd register a nsiFolderListener. It gets notified everytime a message is added to the folder.
You could check if these snippets help you.
I also found a somewhat older document detailing the mail event system. It is flagged as in need of technical review but might give you a decent starting point.

IMAP: "immediate" delete, without going through Trash folder?

I currently filter some message from my inbox with these steps:
select inbox
pick messages
set \Deleted tag
and then repeat the process after selecting Trash.
Is there a more direct way of disposing of these messages? Or is it just the feature of the Mail server that deleting a message puts it in the trash, and deleting from the trash permantently disposes of it?
I believe you have to call EXPUNGE after setting the tag Deleted.
RFC 3501
Not sure exactly where you're doing these operations. IMAP itself doesn't specify that you move things to a Trash folder. Typically IMAP will let you mark a message as deleted and keep it within your inbox but marked as deleted. You can then choose to "purge" the folder which will actually delete all items marked for deletion.
With my mail client (thunderbird), to direct delete instead of send to trash, I hold down the Shift key along with the Delete key.

Resources