Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

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

0
ryno71
Asked:
ryno71
  • 3
1 Solution
 
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
 
Mayank SAssociate Director - Product EngineeringCommented:
Any specific reason for the B grade? You can ask for more clarification if you want.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now