IMAP Folders

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
ivanaT94
New user
New user
Posts: 7
Joined: 2017-04-14 20:07

IMAP Folders

Post by ivanaT94 » 2017-05-04 10:41

Hello everyone,

I have a question about the imap folders, maybe it is a basic one but i am new in this so i would appreciate if someone will help me.
So, I am wondering how it is specified in the code if one folder is public or not (i am not able to find that part in the source code), and how does imap make difference between public and private folders?
Thank you

User avatar
mattg
Moderator
Moderator
Posts: 19101
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: IMAP Folders

Post by mattg » 2017-05-04 11:55

Public folders are not linked to an account
Normal IMAP folders are linked to an account, and a domain
Public IMAP folders are linked to the installation, and come under settings in the COM API

The Public IMAP folders have a 'FolderAccountID' of 0 in the HM_IMAPfolders table, but if you change another folder to 0 without using the admin GUI you will probably break your HMailsevrer, because you also need to set ACLs for the folder, and set up Public IMAP folders, and parents etc

If you create an Public IMAP folder with the admin GUI and have suitable permissions you can copy mail from within a mail client from a private IMAP folder to the public IMAP folders
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

ivanaT94
New user
New user
Posts: 7
Joined: 2017-04-14 20:07

Re: IMAP Folders

Post by ivanaT94 » 2017-05-04 15:30

Thank you very much for your reply.
Also I would like to ask another question regarding the IMAP status flags such as read, recent, flagged...
I would like to know where in the code are they defined and how are they stored?
Thank you

User avatar
jimimaseye
Moderator
Moderator
Posts: 7520
Joined: 2011-09-08 17:48

Re: IMAP Folders

Post by jimimaseye » 2017-05-04 15:38

They are stored in the database (under hm_messages).

viewtopic.php?p=91948#p91948
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

Post Reply