Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 650287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:02:11+00:00 2026-05-13T22:02:11+00:00

I am trying to design an mail system. I have stuttered on the problem

  • 0

I am trying to design an mail system. I have stuttered on the problem that I have no solution yet, but maybe you can point me to some? My problem is I don’t really imagine how does the database schema should look like if we are having two different tables for Inbox and Outbox. In example we also must have Users and Messages tables. So from my point of view I think that Message should have two Foreign key to both users ID’s(primary key in Users table) from which we can identify sender and receiver. Afterwards it seems ok, but if we will start thinking that we must identify which of the both users should have this message in Inbox or Outbox? Only thing comes to mind if we will have Message fields like id, sender_id and receiver_id, text and etc. I don’t think its a good maintainable design.. In example if we would like to have Message table not only for users conversations but on forum or somewhere else? Please correct me if I am wrong. Any help, suggestions, advices are welcome!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:02:12+00:00Added an answer on May 13, 2026 at 10:02 pm

    Look at Zimbra for some inspiration. It’s open source, and uses MySql to store the message metadata, while the actual messages are stored in the file system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to design header only library, which unfortunately needs to have global
I am trying to design an application that would require me to retrieve data
I am trying to design a template for a TabItem using paths and rectangles.
I am trying in design a watertight exception handling strategy for an MVC application
I'm trying to design a tab control which will fade out the current content
I am trying to design a queue which could be simultaneously accessed by multiple
I am trying to design a way to represent mathematical equations as Java Objects.
I am trying to design my ruby on rails app at the moment. I
I want to design a Horizontal menu and onMouseover I want a vertical submenu
I designed a web app for iPhone and am now trying my hands at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.