Home | Reviews | GUIpedia | Forum | Fun500
trolly | Asgard Mail server comming soon.hi, i'm writing a mail system in php for asgard.
the server part is done.
now i'll write the mail client, it will certainly be released tomorow. | 2009-05-07 | 8:16 AM |
pharoah | Re:Asgard Mail server comming soon.Are you sure that what you've written is a mail server? Usually accepting SMTP requests is done by Apache, I didn't think you could make it work in PHP (at least not in a day). | 2009-05-07 | 9:06 AM |
trolly | Re:Asgard Mail server comming soon.it's not realy a mail server, but a private messaging system. | 2009-05-07 | 12:34 PM |
Todd | Re:Asgard Mail server comming soon.A mail server would require shell access to handle POP3, IMAP, and SMTP requests. Plus does Apache handle SMTP, Pharoah? Apache handles mostly HTTP requests but I thought something like Sendmail or some daemon like that could handle SMTP. I think you can route SMTP requests through Apache but ultimately they're sent to the server's mail daemon which handles SMTP. On XS, I have it handled through Sendmail. | 2009-05-07 | 1:12 PM |
trolly | Re:Asgard Messaging System AvailableYou can install it with the online installer
note: this messaging system allow you to send messages to registerd users.
registration form is embedded in the program, you will see, it's easy to use | 2009-05-07 | 1:35 PM |
pharoah | Re:Asgard Messaging System Available"Plus does Apache handle SMTP, Pharoah? Apache handles mostly HTTP requests but I thought something like Sendmail or some daemon like that could handle SMTP."
You're right -- I've never actually done any server level stuff. All my web coding is done under shared hosting.
Hell, I can't even write an IMAP client without the PHP IMAP module installed (hence the lack of QML webmail). | 2009-05-07 | 3:41 PM |
trolly | :Asgard Messages client screen shotsthere is some screen shots from the first release of the message client.
the main screen:
[img]http://asgard.theguiblog.com/screens/mail1.jpg[/img]
the incoming messages box (the sender is "trolly" because i've send message to myself)
[img]http://asgard.theguiblog.com/screens/mail2.jpg[/img]
the message edit window (new message)
[img]http://asgard.theguiblog.com/screens/mail3.jpg[/img]
the message edit window (message reply)
[img]http://asgard.theguiblog.com/screens/mail4.jpg[/img]
in fact, the message client work like a cms messaging system:
[ul]
[li]it send info by loading php page with wget, the actions parameters are given in the url (like any browser will do with a form)[/li][li]the php page take the info with the $_GET method, and put the result to the output[/li][li]finaly, the client can read the status from the output file[/li][/ul] | 2009-05-07 | 4:13 PM |
trolly | Re:Asgard Messaging System Availablei've made some search, php can easyly send mail:
function sendmail($user,$destin,$object,$content)
{
$headers ="From: ".$user."@asgard.comn";
$headers .="Reply-To: ".$user."@asgard.comn";
$headers .="Content-Type: text/plainn";
$headers .="Content-Transfer-Encoding: 8bit";
if(mail($destin, $object, $content, $headers))
{
return true;
}
else
{
return false;
}
} | 2009-05-07 | 5:29 PM |
trolly | Re:Asgard Messaging System Availablei've updated the server and the client, now it can send mail (in text format) to a real address | 2009-05-07 | 5:43 PM |
pharoah | Re:Asgard Messaging System AvailableYep, sending mail in PHP is extremely easy (I use it to have myself notified of errors with Feedable),it's receiving it that's tough. There's a module that lets PHP open IMAP/POP3 mailboxes, but I don't think it's installed here and I know it's not on XS. | 2009-05-07 | 6:35 PM |
Brandon | Re:Asgard Messaging System AvailableA Fun500 5 Client for this would be cool. | 2009-05-07 | 8:17 PM |
Todd | Re:Asgard Messaging System Available[b]Pharoah wrote:[/b]
[quote]Yep, sending mail in PHP is extremely easy (I use it to have myself notified of errors with Feedable),it's receiving it that's tough. There's a module that lets PHP open IMAP/POP3 mailboxes, but I don't think it's installed here and I know it's not on XS.[/quote]
I can install it if you'd like.
trolly, really awesome client! Your GUI is like the DOS version of GNOME I never saw. lol | 2009-05-07 | 10:29 PM |
pharoah | Re:Asgard Messaging System AvailableIt would be gteat if you could install the php imap package. Of course, any QML webmail client would be inherently insecure, but it would be cool to have one. | 2009-05-08 | 1:52 PM |
trolly | Asgard MAIL with POP3 support !now i'm working with php imap to make a pop3 retriever for the message system.
it is in way to be donne, ... in local it work (using my apache and php configuration)
i could get mail from my dad's ISR's pop3 sever and read it with the mail client in asgard | 2009-05-08 | 3:36 PM |
pharoah | Re:Asgard MAIL with POP3 support !Since you're not using QML, you have an opportunity to make a secure mail client. At the very least, you will have to submit the info (username, password, messages) via POST instead of GET. You should try to do HTTPS using WGET, it's not hard.
If you use GET be sure to let everyone know when the program starts so they can be aware about the risk. | 2009-05-08 | 3:51 PM |
trolly | Re:Asgard MAIL with POP3 support !test almost complete, i can get message from my gmail account ussing "pop.gmail.com/pop3/ssl" for the server address.
i could not use https because the main part of the code is in the php file in the host, ... sadly theguiblog work not in https.
i'll add a message in the mail clent to aware the user that it use the get method.
ps: how can i send info wia "post" method? | 2009-05-08 | 4:18 PM |
trolly | Gmail in asgard screen shoot[img]http://asgard.theguiblog.com/screens/mail5.jpg[/img] | 2009-05-08 | 4:45 PM |
pharoah | Re:Gmail in asgard screen shoot"ps: how can i send info wia "post" method?"
Google how to use WGET to send POST requests... I don't think it's that tough. Then you just use $_POST[] in PHP instead of $_GET[]. | 2009-05-08 | 4:56 PM |
Todd | Re:Gmail in asgard screen shoot[b]Pharoah wrote:[/b]
[quote]"ps: how can i send info wia "post" method?"
Google how to use WGET to send POST requests... I don't think it's that tough. Then you just use $_POST[] in PHP instead of $_GET[].[/quote]
If you can find some sort of fsock client, you can send HTTP POST requests like this:
[code]
POST HTTP/1.0
Connection: Close
Content-Type: text/html
test
GO FSCK YOURSELF!
[/code]
When doing straight requests however, every line in the request header must be given "rn" for a carriage return and new-line. Then end with two empty "rn"s and put your data in. | 2009-05-08 | 5:50 PM |
trolly | Re:Gmail in asgard screen shootwhat are the difference betwen the GET and POST method?
is POST realy more secure than GET? | 2009-05-08 | 8:13 PM |
aguma | Re:Gmail in asgard screen shootGET displays the data in the little bar on top. POST doesn't. The end. | 2009-05-08 | 8:17 PM |
trolly | Re:Gmail in asgard screen shooti could not use post methode with wget + Qbasic, because it's a limitation in the shell string len from qbasic ... and wget require that i write --post-dat=" ..... " in the command line :( | 2009-05-08 | 8:27 PM |
pharoah | Re:Gmail in asgard screen shoot[code]
GET displays the data in the little bar on top. POST doesn't. The end.
[/code]
That is by no means the only difference between GET and POST. Some other very important differences include:
1. GET requests are often cached, as they are designed to retrieve a certain resource without making any kind of change to the destination site (IE without submitting information).
2. GET requests are usually logged by the server that handles them. This means that it would be a fairly simple matter to read through these logs and find password information, which otherwise wouldn't be kept on the server side.
QML uses GET because it is easy to implement, and Qbrowse was written before I knew about Wget and had only GetNet at my disposal. Since you're creating a proprietary client, sending POST requests would be best.
Here's an article that explains get vs. post, but it can be a bit difficult to understand I'd imagine:
http://www.cs.tut.fi/~jkorpela/forms/methods.html | 2009-05-08 | 11:18 PM |
Todd | Re:Asgard Messaging System Available[b]Pharoah wrote:[/b]
[quote]It would be gteat if you could install the php imap package. Of course, any QML webmail client would be inherently insecure, but it would be cool to have one.[/quote]
Turned out I had it installed but disabled it earlier. It should be working in PHP now. | 2009-05-08 | 11:36 PM |
trolly | Re:Asgard Messaging System Availablesadly... my version of wget dont support "--post-data" or "--post-file" :( | 2009-05-09 | 5:43 AM |
Brandon | Re:Asgard Messaging System AvailableMaybe someone should recompile WGET for DOS? With just the features that GUIs would use? | 2009-05-09 | 7:36 AM |
Blog
2021 Brandon Cornell