1 (edited by tuuialou 2020-12-06 13:21:57)

Topic: What is the best way to share a mailbox with private seen flag?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello, this is my first message here so I hope to be in the right section.

I am trying to setup a shared mailbox for a small team. Let's say Alice and Bob both need to read and answer the mailbox sales@example.com.

## solution1 ##
I wanted to use this simple setup:

    --- Thunderbird as IMAP client on Alice's computer ---
    alice@example.com
      |_inbox
      |_sent
    sales@example.com
      |_inbox
      |_sent

    --- Thunderbird as IMAP client on Bob's computer ---
    bob@example.com
      |_inbox
      |_sent
    sales@example.com
      |_inbox
      |_sent

Basically, both Alice and Bob read and answer sales@example.com and they keep track of who answered an email based on the signature they leave at the bottom of each email they answer. The problem with this setup is that Bob sees a message marked as "read" if Alice has read it before (and vice-versa) because everything is synchronized. Alice and Bob would like to keep a "private" seen flag on their own computers but share all the rest (deleted messages, tags, stars, ...).


## solution2 ##
So I looked at https://docs.iredmail.org/public.folder … lic-folder and the "Per-user \Seen flag" on https://wiki.dovecot.org/SharedMailboxe … Mailboxes. I am still trying to make it work for the moment but there is something I don't like at first glance: they would need to use the "subscribe" function of Thunderbird:

    --- Thunderbird as IMAP client on Alice's computer ---
    alice@example.com
      |_inbox
      |_sent
      |_Public
        |_sales@example.com_inbox
        |_sales@example.com_sent

    --- Thunderbird as IMAP client on Bob's computer ---
    bob@example.com
      |_inbox
      |_sent
      |_Public
        |_sales@example.com_inbox
        |_sales@example.com_sent


The "subscribe" setup looks a bit buggy in Thunderbird at first glance (or more complicated to setup at least). For example:

- email subjects and sender names sometimes disappear
- I need to manage default identities so they answer from sales@example.com (and not from alice@example.com or bob@example.com)
- emails are not sometimes synchronized with delay



So my question is simple: is there a way to maintain "private seen flag" with solution1 ? If not, what do you advise me to keep it as simple as possible? Thanks for any help!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: What is the best way to share a mailbox with private seen flag?

I don't know how you implement #1, but #2 is the recommended way IMO.

3 (edited by tuuialou 2020-12-09 12:22:31)

Re: What is the best way to share a mailbox with private seen flag?

ZhangHuangbin wrote:

I don't know how you implement #1, but #2 is the recommended way IMO.

Hello and thanks for your answer.

### regarding solution2 ###
I don't find it convenient in Thunderbird because:
  - I can't use the "unified" folder view which is very practical to quickly change mailbox, browse, search, etc...
  - I need to create a specific identity for sales@example.com in Alice's and Bob's Thunderbird and make sure they manually select this identity every time they reply to an email received on sales@example.com (it's impossible to select a default identity for each folder)
  - replies from Alice or Bob as sales@example.com are stored in Alice or Bob sent items instead of the sent items of sales@example.com
  - ...


### regarding solution1 ###
I wanted to replicate this Exchange trick https://www.en.its.aau.dk/instructions/ … underbird/. I am surprised this setup is not more popular on Dovecot but I just discovered this very interesting post: https://forum.iredmail.org/topic13549-p … in-as.html

I understand the whole point of this setup is to have Thunderbird (or any other client) present the shared account as any other account (instead of using the subscribe feature) AND enjoy the "Per-user seen flags"

- Do you think it would still work with the newest version of iredmail (this post is from 2017)?
- Would this setup be bricked on updates?

Thanks for any help!

4

Re: What is the best way to share a mailbox with private seen flag?

tuuialou wrote:

  - I need to create a specific identity for sales@example.com in Alice's and Bob's Thunderbird and make sure they manually select this identity every time they reply to an email received on sales@example.com (it's impossible to select a default identity for each folder)

Try to set "subscriptions = no" in the "namespace { type = public ...} " block to force subscribed.

tuuialou wrote:

### regarding solution1 ###

I didn't try it, i'm afraid that you're on your own.

5 (edited by tuuialou 2020-12-13 13:07:48)

Re: What is the best way to share a mailbox with private seen flag?

Hello and thanks for your answer

I am still trying to implement solution1 as it's much better integrated within Thunderbird. By taking a closer look at https://forum.iredmail.org/topic13549-p … in-as.html I realized the proposed solution leverages the Master User feature (https://docs.iredmail.org/dovecot.master.user.html)

But I understand "Per-user \Seen flag" can't be used with the "Master User" feature. Is it correct?

Isn't there a way to replicate this setup https://www.en.its.aau.dk/instructions/ … underbird/ in dovecot? Basically, I am just trying to:

- have Alice use sales@example.com as a mailbox (not subscribed folders) while keeping private seen flags in her Thunderbird
- have Bob use sales@example.com as a mailbox (not subscribed folders) while keeping private seen flags in his Thunderbird

I have tried with Public, Shared and Symlinking mailboxes but I can't find a way to achieve that. Is it possible to completely disable the \Seen flags in Dovecot so that only Thunderbird keeps an index of the \Seen flags?

Thanks again for any help!

6

Re: What is the best way to share a mailbox with private seen flag?

I still didn't find a solution.

Is it possible to completely disable the \Seen flags in Dovecot so that only Thunderbird keeps an index of the \Seen flags?

7

Re: What is the best way to share a mailbox with private seen flag?

Better ask in Dovecot mailing list to get some advance help:
https://www.dovecot.org/mailing-lists