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 7654117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:11:52+00:00 2026-05-31T12:11:52+00:00

i want bulid faster webmail i’ve built small webmail script based on ( php

  • 0

i want bulid faster webmail

i’ve built small webmail script based on ( php imap functions ( imap port connection ) )

but it take a long time to connect and get the mail ..

So, i decided to read the mail manually without connect ( by my own functions ) ..

i’ve built my own functions, that go to the ( user mails ) path, and then i use ( scandir function )

to get all mails in the folder, and then read/get them manually!

i’ll show you an example code

<?
$current_folder = 'new';
$virtual_user = 'someone';
$path_to_mails = '/home/user/mail/' . $virtual_user . '/' . $current_folder;
$all_emails = scandir( $path_to_mails );
foreach ( $all_emails as $mail_file ) {
              $file = file_get_contents ( $mail_file ) ;
              //Now i've the mail file .. 
              //i'll explode it and extract the important information from it
}
?>

Now i got emails without connect to any port

i think it faster than the ( php imap functions ) …

but it also take a long time to get and read the file!!

why gmail and yahoo is soooooooooooooooooooo faster??? may be they using database to store their webmail files?

NOW MY QUESTIONS IS

1 – is my own functions really faster than the php imap functions theoretically? ( may be i am wrong )

2 – ( Gmail , Yahoo , Hotmail ) where they storing their mail files? database or hard disk? they are so faster and
in the same time they allow you to connect to their server via imap and get your mails via php, that mean they using hard disk to store email files!!
or may be they use database and they customized their webmail softwares

3 – is there any way to customize the postfix, store the mails to database instant of the hard disk??
4 – tell me the best idea to build a faster and strong webmail system

PLEASE DO NOT IGNORE ANY OF THIS QUESTIONS

i am working on this project 3 months ago.. i’ve tired!

  • 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-31T12:11:53+00:00Added an answer on May 31, 2026 at 12:11 pm

    1 – Yes.

    2 – Depends on the provider. I assume Yahoo and Hotmail might be using actual IMAP servers but I don’t think they disclose their infrastructure.

    3 – This does not relate to postfix. Postfix is just the MTA after all. It doesn’t store the mails it just transfers them. So you can of course code your own database driven service. Daunting task 😉

    4 – Build on existing tools. The easiest choice is to build on top of the Horde Webmail

    Webmail is a daunting task. The small snippet of PHP code you showed is really light years away from reality if you consider the complexity of modern webmailers. If you really want something working you need to start with existing building blocks. Horde is the best option there because it is a development framework, provides efficient IMAP caching capabilities, a decent AJAX backend and so on. Nevertheless: Your own webmail service will remain a daunting task nevertheless.

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

Sidebar

Related Questions

i want to bulid a table layouts like this.how? alt text http://privateevent.co.uk/underground/img/gallery/19_1236343602.png
I want to make my component faster, I am using Javascript and JQuery to
A friend and I have written an encryption module and we want to port
i want build a photography app with effects . e.g. old images with brown
I want build a sketch pad app on iPhone, I assume that this type
I want to build an x86 msi package as well as an x64 package
I want to build projects from the command line. Is it possible to deploy
I want to build a list containing every possible permutation of capitalization of a
I want to build a simple application with the MVVM pattern. This application will
I want to build a website that uses Flex/Flash as the GUI, and Java

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.