HOWTO create IMAP shared folders

From RADION OpenLab

  • Create a regular maildir and make sure you have the right permissions:
maildirmake -S /var/spool/Maildir/Sharedmail
maildirmake -s write -f Folder /var/spool/Maildir/Sharedmail

or just

maildirmake /var/spool/Maildir/Sharedmail
maildirmake /var/spool/Maildir/Sharedmail/.Folder
  1. chmod/chown as required
  • As user, activate shared folders:
maildirmake --add Folder=/var/spool/Maildir/Sharedmail $HOME/Maildir


Notes

  • Each user will have a file called "shared-maildirs" with "Folder<tab>/var/spool/maildir/Sharedmail", and a directory called "shared-folder" with a "Folder" folder inside.


  • In Folder you'll have every shared sub-folder maildir as "Foldername", not as ".Foldername" (notice the lack of initial dot), although sub-sub-folders will remain seperated by dots - "Foldername.Subfoldername"


  • In each of these Mail Dir folders you'll have an (hopefully) empty "tmp" and "new", and an active "cur". You'll also have a link called "shared" pointing to each "/var/spool/Maildir/Sharedmail/Foldername"


  • In "cur" you'll have symbolic links pointing to each of the original messages


[1]

[2]

[3]</pre>

RADION OpenLAB