Java Sequence/Segment Question

Hi

I have a quick Java sequence # segment # number type of question.  I am trying to figure out the best way to do this...  I have a common mailbox that I want to empty and that mail messages that are in the mailbox are for different people (say A, B, C, and so on).  The mail messages may be large and separated in segments with segment numbers (say C1, C2, C3, and so on).  Can someone suggest a good way to tackle this?  I'll need to put the segments together too before I send them along

I'll be pulling the mail messages one at a time from the mailbox.

Thanks
ryno71

ryno71Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate Director - Product EngineeringCommented:
>> The mail messages may be large and separated in segments with segment numbers

What do you want the logic of separation to be? Should it be from sender, subject, size of the mail, date delivered or something else?
0
ryno71Author Commented:
mayankeagle

Actually the separation of the mail messages should be based on the recipient because there is only one mailbox and many recipients.

ryno71
0
Mayank SAssociate Director - Product EngineeringCommented:
Oh, well. You need to write an SMTP listener which can listen for mail-messages on the SMTP server. Once the e-mail arrives, it will be notified. Then it can check the to-address of the e-mail using which you can serialize the mail into files, in different directories (created as per the user-name).

This need not be done in Java. For example, if the server is a Microsoft exchange-server, you will find it a lot easier to do it through the CDO API in C# .NET.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
Any specific reason for the B grade? You can ask for more clarification if you want.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.