We help IT Professionals succeed at work.

Java Sequence/Segment Question

ryno71
ryno71 asked
on
Medium Priority
167 Views
Last Modified: 2010-03-31
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

Comment
Watch Question

Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
>> 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?

Author

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
Principal Technologist
CERTIFIED EXPERT
Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
Any specific reason for the B grade? You can ask for more clarification if you want.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.