On Jan 21, 2009, at 6:53 PM, Molin MEN wrote:
But i'm still not sure about IMAP storage. Could you explain me in
detail about that?
I use Fedora, some of the paths might be different on your system.
You might want to look at this HOW-TO at The Linux Documentation
Project :
http://www.tldp.org/HOWTO/Mail-Administrator-HOWTO.html
I'll use angle brackets to designate names that are variable.
I am simplifying here to keep things brief.
If I get anything seriously wrong, please anyone else jump in and
correct me.
When a message comes into a mail server ( or Mail Transport Agent -
MTA ) if the message is for an account on that computer, it hands the
message off to a Local Delivery Agent ( LDA ) such as procmail.
procmail removes the envelope and puts the message into the proper
user's inbox, which is normally the file /var/spool/mail/<username>.
If a user connects via IMAP, messages are shown in mailboxes. The
inbox resides in /var/spool/mail/<username> , however any other
mailboxes are stored in the user's home directory, usually /home/
<username>/ . Many administrators prefer to have mailboxes in a sub-
directory of user home directories, and some command-line Mail User
Agents ( MUA ) _need_ a sub-directory. The most common sub-directory
is "mail" so the path where non-inbox messages are stored are in /
home/<username>/mail/<mailboxname>
There are two common formats that messages are stored - mbox and
maildir.
mbox is a single file that contains many messages. maildir is a directory that contains a file for each message.
That should get you started in the right direction.
I just wonder whether it is stored in IMAP storage as what u said
RoundCube connects to an IMAP server just as Thunderbird ( a MUA ) does. Messages are stored on the IMAP server.
What do you mean by caching of message?
The messages always reside on the IMAP server.
Thunderbird, for example, makes local copies ( a cache ) of what is
on the IMAP server to improve performance.
RoundCube can be configured to create a cache of IMAP message too.
So, as described in the config file comments -
// this is recommended if the IMAP server does // not run on the same machine
It _may_ increase performance for the database to make a "local copy"
of the IMAP messages depending on your computing environment.
Most of the time it won't, but if the database server runs on the
same computer as the webserver,
and the IMAP server is on a different computer, the database caching
might help.
Testing is the only way to determine if having RoundCube use a
database cache of IMAP messages helps.
What do you mean by serialize into a big pile here?
I mentioned mbox and maildir formats above.
Since it takes a bunch of PHP code ( and processing time ) to parse
through the IMAP messages in order to display them in the web page,
what is cached in the database is the parsed PHP-specific data from
the messages, serialized into a form that the database can store. To
a human, that serialized data doesn't look much like a message
anymore, it is in a format meant to be understandable by PHP. The
message data would be more understandable to a human when viewed on
the IMAP server rather than the pre-parsed, serialized cached data.
One last note.
Messages that have HTML parts or attachments are difficult to read
via a text editor or text pager directly as they are stored on the
IMAP server, particularly if the messages are stored in mbox format
and the mailbox is large.
HTH
i think the OP is confused as to the nature of roundcube.
Roundcube is NOT an all encompassing email system.
that is to say, EMAIL users are not created and managed in the roundcube system.
Roundcube connects to an email server and presents mail to a user who logs in. JUST like a mail client, aka thunderbird, outlook
the reason that roundcube creates and manages new users is so that users using roundcube can store a contacts list, and probably store other preferences. JUST like thunderbird creates a user profile on your computer to store preferences and contact lists. the contact list that roundcube manages is obviously only accessible when using roundcube's interface.
since roundcube serves the same purpose as a mail client like thunderbird, but instead of being on the machine you are using and is hosted on a web server for all people to access... mails aren't actually pulled off of the server and into roundcube... you just use roundcube to view your mails, manage them, and send new ones.
in short, its all kinda like the voicemail system for phones. you can use any phone (email client: thunderbird, outlook) to access your voice mails (emails) by dialing your voicemail provider (accessing your email server), and know that roundcube is a phone (email client) not a voicemail service (email server).
List info: http://lists.roundcube.net/users/
On Jan 22, 2009, at 4:31 PM, Joshua Kordani wrote:
in short, its all kinda like the voicemail system for phones. you can use any phone (email client: thunderbird, outlook) to access your
voice mails (emails) by dialing your voicemail provider (accessing your
email server), and know that roundcube is a phone (email client) not a voicemail service (email server).
OK, that comparison confused me, but I agree with the rest of your
message.
yea sorry, lemme break it down,
voicemail systems and usage are analogous (at a high level) to email systems and usage.
with a voicemail service provider, you are given an account and an access phone number, and you configure your password. when your phone misses calls, your phone is configured to forward missed calls to your voicemail access number. if you know that number, you can use any phone to check your voicemail.
email is the same, you are given an account and a password and an access address. mails sent to you get collected on the server. as long as you know your mail address, you can use any mail client to access your mail
I was saying that roundcube serves the purpose of email client (kinda)/phone for accessing voicemail, as opposed to what I thought the OP thought roundcube did, which sounded like a service provider/ email server.
chasd wrote:
On Jan 22, 2009, at 4:31 PM, Joshua Kordani wrote:
in short, its all kinda like the voicemail system for phones. you can use any phone (email client: thunderbird, outlook) to access your
voice mails (emails) by dialing your voicemail provider (accessing your
email server), and know that roundcube is a phone (email client) not a voicemail service (email server).OK, that comparison confused me, but I agree with the rest of your
message.
List info: http://lists.roundcube.net/users/
I quote from the RoundCube Wiki:
What is RoundCube http://trac.roundcube.net/wiki/RoundCube? ¶http://trac.roundcube.net/wiki/FAQ#WhatisRoundCube
just like Thunderbird, Outlook or Apple Mail.
What RoundCube http://trac.roundcube.net/wiki/RoundCube is not? ¶http://trac.roundcube.net/wiki/FAQ#WhatRoundCubeisnot
mailserver.
admin your mailserver.
email accounts.
You can view this answers here: http://trac.roundcube.net/wiki/FAQ
With that it should be clear to the OP what Roundcube actually does and what not.
On Fri, Jan 23, 2009 at 2:26 PM, Joshua Kordani jkordani@intlogsys.comwrote:
yea sorry, lemme break it down,
voicemail systems and usage are analogous (at a high level) to email systems and usage.
with a voicemail service provider, you are given an account and an access phone number, and you configure your password. when your phone misses calls, your phone is configured to forward missed calls to your voicemail access number. if you know that number, you can use any phone to check your voicemail.
email is the same, you are given an account and a password and an access address. mails sent to you get collected on the server. as long as you know your mail address, you can use any mail client to access your mail
I was saying that roundcube serves the purpose of email client (kinda)/phone for accessing voicemail, as opposed to what I thought the OP thought roundcube did, which sounded like a service provider/ email server.
chasd wrote:
On Jan 22, 2009, at 4:31 PM, Joshua Kordani wrote:
in short, its all kinda like the voicemail system for phones. you can use any phone (email client: thunderbird, outlook) to access your voice mails (emails) by dialing your voicemail provider (accessing your email server), and know that roundcube is a phone (email client) not a voicemail service (email server).
OK, that comparison confused me, but I agree with the rest of your message.
List info: http://lists.roundcube.net/users/
List info: http://lists.roundcube.net/users/