Feature Request: Save 'Send As' Messages in Delegate’s Sent Item | MDaemon Technologies, Ltd.

Feature Request: Save 'Send As' Messages in Delegate’s Sent Item


  • Hello,

    As part of the addition of the “Send As” permission, would it be possible to configure the system so that messages sent as another account are automatically stored in the corresponding mailbox’s “Sent Items” folder?

    Example:
    Logged into webmail with the account toto@mdaemon.com → Sending a message as lala@mdaemon.com → The message is automatically stored in the “Sent Items” folder (previously shared) of the lala@mdaemon.com account.

    Thank you in advance for your feedback.

    Best regards,

     

    Bonjour,

    Dans le cadre de l’ajout de la fonctionnalité « Autorisations d’envoi en tant que », serait-il possible de configurer le système afin que les messages envoyés en tant que soient automatiquement enregistrés dans le dossier « Éléments envoyés » de la boîte aux lettres correspondante ?

    Exemple :
    Connexion au webmail avec le compte toto@mdaemon.com → Envoi d’un message en tant que lala@mdaemon.com → Le message est automatiquement enregistré dans le dossier « Éléments envoyés » (préalablement partagé) du compte lala@mdaemon.com.

    Je vous remercie par avance pour votre retour.

    Cordialement,



  • There is not current an option to assign which mailbox stores a copy of the sent item, but this can be accomplished using a content filter rule.  We will look into simplifying this process for future versions.

    The rule to copy the message to the sent items folder of the user in the FROM header would look something like this:

    [Rule045]
    RuleName=Copy for SendAs
    Enable=Yes
    ThisRuleCondition=All
    ProcessQueue=BOTH
    Condition01=FROM|contains|AND|lala@mdaemon.com|
    Condition02=X-Authenticated-Sender|contains|AND|toto@mdaemon.com|
    Action01=copy to dir|"C:\MDaemon\Users\mdaemon.com\$FROMMAILBOX$\Sent Items.IMAP\"

    In this case, you do not have to use the $FROMMAILBOX$ macro, since you will always want the copy placed into the Sent Items folder of lala@mdaemon.com.  So you could change it to:

    Action01=copy to dir|"C:\MDaemon\Users\mdaemon.com\lala\Sent Items.IMAP\"

    Thank you for your feedback,


  • Hello,

    Thank you for your detailed response.

    I understand that this can be handled via a content filter rule. However, in my case, I would prefer that the message be moved to the Sent Items folder of the mailbox rather than copied. This would prevent duplicates in both mailboxes.

    I tested the following filter:

    [Rule004]
    RuleName=Move for SendAs lala@mdaemon.com
    uid={xxxx-xxxx-xxxx-xxxx}
    Enable=Yes
    ThisRuleCondition=All
    ProcessQueue=BOTH
    Condition01=FROM|contains|AND|lala@mdaemon.com|
    Condition02=X-Authenticated-Sender|contains|AND|lala@mdaemon.com|
    Action01=copy to dir|"C:\Mdaemon\Users\mdaemon.com\lala\Sent Items.IMAP\"
     

    Unfortunately, it did not work.

    I hope your investigation on this topic will lead to a solution. Ideally, this could be done automatically, but at the very least, having a filter that allows the message to be moved would be very helpful. Currently, the content filter does not support moving messages into a shared folder.

    Thank you again for your support.

    Best regards,


  • The email client places a copy of the message in the sent items folder of the user sending the message.  The content filter by itself, cannot move the copy of the message the email client places in the sent items folder.

    The only way I see to accomplish this would be to write a script that would be executed by the content filter rule I provided above.  The script would need to find the value of the Message-ID: of the message being processed.  Search the Sent Items.IMAP folder of the toto@mdaemon.com user for .msg files that contain the message ID, and then either delete the MSG file, or move it.  If you choose to move it, you would need to adjust the actions of the content filter rule I provided so that you don't end up with two copies of the sent item.

    Depending on how large the sent items folder for toto is, this could be a very slow process.  Also, it only works if the client sending the message adds the message ID header.


Please login to reply this topic!