Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 POP3 command for search

Author  Topic 

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 00:49:05
I have two links for POP3 commands

http://www.good-stuff.co.uk/useful/pop3.php

http://www.orangehedgehog.com/resources/content.php?show=pop3_commands

Here I couldn't find anything to search for a string in the body of a message. Or can I use any of it for that purpose? If yes, please help me how to do it.

Sujith S

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-05-31 : 01:09:07
You can't do it. You have to retrieve the body of the message and do your own searching.


Damian
Ita erat quando hic adveni.
Go to Top of Page

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 01:28:12
I think we can do it. I have seen search in mail body in mail.yahoo.com and gmail.com. Its also there in IMail server's web interface.

Also its practically wrong to download all the mails including their body to the client machine. Body should be downloaded only when one user views the mail. In yahoo and gmail, I dont think they are dowloading the mail fully to the client machine.

I hope there is some possibility that the search can be conducted in the mailserver on the body of the mail.

Sujith S
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-05-31 : 01:43:20
quote:

I think we can do it.



You are wrong.

quote:

In yahoo and gmail, I dont think they are dowloading the mail fully to the client machine.



They are recieving the mail via SMTP and storing them in a database. A database lets you index and search text. The are displaying emails by connecting their web interface to a POP3 server.


Damian
Ita erat quando hic adveni.
Go to Top of Page

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 02:47:01
Are you sure that it is not possible? So we'll have to download all the messages in the inbox along with its body.
Ok, Thanks a lot.

Sujith S
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-05-31 : 02:52:55
This is the rfc for the POP3 protocol.

http://www.ietf.org/rfc/rfc1939.txt

There is no POP3 command to search. You WILL have to download the body of the messages.


Damian
Ita erat quando hic adveni.
Go to Top of Page

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 03:37:05
Thanks Merkin for your help.

Can I get any open source code for creating a webmail client which may include search in the body too?

Sujith S
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-05-31 : 03:39:05
Maybe. Have you looked for any ?


Damian
Ita erat quando hic adveni.
Go to Top of Page

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 03:46:50
Sure...
This is the one I tried to configure.

http://anmar.eu.org/projects/sharpwebmail/

I got it from http://sourceforge.net/
But now the link is not working. I don't know why.

So, if you have any idea, please share it.

(I think I have put the query in ASP.NET forum in SQLTeam. Database queries have a different forum in SQLTeam.)

Sujith S
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-05-31 : 03:58:42
The site is down.
From the description on Freshmeat.net, Sharpwebmail uses pop and imap so it probably won't let you search either, most webmail packages only open mails on request.

I think you are going to have to write this yourself.


Damian
Ita erat quando hic adveni.
Go to Top of Page

sujith
Starting Member

20 Posts

Posted - 2005-05-31 : 05:35:52
Yes. I may have to write it by myself.

For that I need some help. So I posted this in the forum.
Expecting that any links or any source which may help me.

Anyways thanks for your replies.

Sujith S
Go to Top of Page
   

- Advertisement -