Question

I am new to web development. I am using James mail server. I created two domains and two users respectively. I am able to send messages to one another and get the messages from 'inbox' folder by the assist of this. I cannot find the way of getting 'sentbox' in the store(I am not sure if there is such folder). There must be another approaches and insights on how to get outbox, draft that James might hold.

Thanks in advance

Was it helpful?

Solution

"sentbox", "outbox", "draft", these are all just regular folders in a mail server. Unlike Inbox, there's nothing special about them. You choose the name of the folder. You create the folder just like any other folder. You store messages in the folder just like any other folder.

OTHER TIPS

Your use case is actually common, and there is a standard way to implement it.

It relies on the Mailet configuration. Make your local delivrey not ghosting emails. Then put behind it a ToSenderFolder with a SenderIsLocal matcher to ensure mail is delivered in the sent box. Finnaly ghost emails for local users with the Null mailet and RecipientIsLocalMatcher.

This is not standard as handling this logic is MUA job. However it still is very easy to implement with standard components.

Cheers,

Benoit

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top