mail server logs

mail server logs

Imagine you have a mail server log. It has many lines. Each line tells a Person A sent an email to Person B. There are two rules:�1. If Person X sent an email to Person Y, they are in a same group. Similarly, if Y also sent an email to Z, Z is in the same group too.�2. If Person A didn't send any email to any person in a group or didn't receive any email from any person in a group, A shouldn't be in the group.�So, there may be many groups from the server log. Please implement a Java program to process the log and eventually for every group, print out every member in the group.

First example: Y Z X Y K X A B C A M L The program should print: There are 3 groups Group 1: Y, Z, X, K Group 2: A, B, C Group 3: M, L

Second example: A C B C The program should print: There is 1 group Group 1: A, C, B

View Answers









Related Tutorials/Questions & Answers:
mail server logs
mail server logs  Imagine you have a mail server log. It has many lines. Each line tells a Person A sent an email to Person B. There are two rules:Ã... be many groups from the server log. Please implement a Java program to process
TEST JAMES MAIL SERVER
TEST JAMES MAIL SERVER  How to test Apache James Mail Server for stress? Which Load Generator should we use to create requests in the form of mail at a controlled rate for SMTP and POP3? Actually I needed to test JVM of the mail
Advertisements
Apache Mail server (James)
Apache Mail server (James)       In this section we will explain you about the James mail server. James is a complete and portable enterprise mail server and a mail application
ModuleNotFoundError: No module named 'mongo-mail-server'
ModuleNotFoundError: No module named 'mongo-mail-server'  Hi, My... named 'mongo-mail-server' How to remove the ModuleNotFoundError: No module named 'mongo-mail-server' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'mongo-mail-server'
ModuleNotFoundError: No module named 'mongo-mail-server'  Hi, My... named 'mongo-mail-server' How to remove the ModuleNotFoundError: No module named 'mongo-mail-server' error? Thanks   Hi, In your
java source code to create mail server using struts2
java source code to create mail server using struts2  java source code to create mail server using struts2
Send Mail using James Server
Send Mail using James Server       This application illustrates how to send mail on the mail server and also saved the message in database table. In this example we create
mail
mail  how to send mail using jsp   Please visit the following links: JSP Send Mail Java Mail Tutorials
Open Source E-mail Server
Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package...; Webmail client, Mail server Innovating within the email server industry since
How to set Messages number to be read in pop3 mail server
How to set Messages number to be read in pop3 mail server  How to set Messages number to be read in pop3 mail server, i am able to read only 250 mails from my inbox whereas i have more than 1000 unread mails in my in my inbox
mail
mail  I wrote a program to send mail using smtp. But there is an error message " could not connect to smtp.gmail.com port 465. what is the problem how can i solve it ...   Please visit the following link: Java Mail API
How to read a log file from server location and send a mail when exception occurs.
How to read a log file from server location and send a mail when exception occurs.  HI, How can i read the 2GB to 4GB log file from server. and i need to send a mail when exception occurs. Thanks RajeevADS_TO_REPLACE_1
How to set Messages number to be read in pop3 mail server
How to set Messages number to be read in pop3 mail server  how to set messages number in pop3, i am able to read only 250 mails from my inbox where as my inbox has more than 1000 unread mails, how to read all at once in pop3
Read Mail using James Server
Read Mail using James Server        This application illustrates how to read mail from mail box and how to select message from database table. In this example we read
configure mail sever
configure mail sever  which is the best server for java mail?   Hi, James is the best mail server in Java. You can download the James for free. Read more at Apache Mail server.ADS_TO_REPLACE_1 Thanks
Open Source E-mail
Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package...; Webmail client, Mail server Innovating within the email server industry since
java mail api - JavaMail
points : 1.Download the Apache Mail server (James) http://james.apache.org... in the classpath. 3.Start the mail server. For read more information,Examples...java mail api  Hi, Pls give me the detailed information on how
java mail - Java Beginners
java mail  how to send mail using with out Authentication?????????/ using gmail server
java mail programs
output.actually,do I need a mail server to get correct output of these codes?plz help me, I...java mail programs  I got some codes from this about sending mail,forwarding mail,multipart mail etc..and I compiled and executed it,but it did
java mail
) throws MessagingException, AddressException { // Setup mail server Properties props = System.getProperties(); props.put("mail.smtp.host", mailServer); // Get a mail session Session session
java mail
java mail  Hi deepak, sorry to trouble again but with reference to apache mail server (james) tutorial i use the link that u have provided it redirects to apache offical site what there 4 zip and taz
java mail
java mail example  how to download javamail software give one examples   Please visit the following link: Java Mail API
java mail
java mail  By Which code or function i can send E-mail to given E-mail Address   Hi Friend, Please visit the following link:ADS_TO_REPLACE_1 Java Mail Thanks   Hi Friend,ADS_TO_REPLACE_2 Please visit
php mail
php mail  how to send the submitted form to mail after 24 hours? pls help me
Confirmation Mail
Confirmation Mail  hi, i need the code.when we sign up it will send the confirmation mail to the e-mail right.how to do that part.....and also help me whether the AJAX is better or PHP better for the front design
java mail
java mail  how to download javamail software give one examples   Please visit the following link: Java Mail API
Version of gj-mail>gj-mail dependency
List of Version of gj-mail>gj-mail dependency
java mail
_TO_REPLACE_2   Hi, Java Mail API is now open source and you can download the source code and read. If you want to understand the working of Java Mail download the source code from here and learn the coding logic behind Java Mail. You
java mail - Java Beginners
java mail  how to send a mail without authentication one domain....  Hi, You have to use the Java mail api. You need to use the SMTP server to send email. Please check the url http://www.roseindia.net/answers
Introduction of Java Mail
?   Apache Mail server (James) In this section we will explain you about the James mail server. James is a complete and portable enterprise mail server and a mail application platform. Latest
configure mail sever
configure mail sever  ok James is a best server for javamail but how to configure and run program if you have any program pls send me at [email protected]   Hi Friend, Read HereADS_TO_REPLACE_1 Thanks
mail with multiple attachments
mail with multiple attachments  code for sending mail with multiple attachments in jsp
mail problem
mail problem  Sir, I tried ur send mail example but it giveng...; <title>Mail API</title> </head> <body><table...;Mail API</h1> <tr>
Compose mail by clicking on send mail button
Compose mail by clicking on send mail button  How i get microsof out look page opend for composing mail by just clicking on send mail button and when outlook page open then in to:my email id is written on my jsp page
java mail
(); out.println("Thanks for sending mail!"); } catch(Exception e
PHP E-Mail
mail to another mail address, we need mail server and various other application.... ADS_TO_REPLACE_26   Since we did not install the mail server, output... PHP E-Mail       E-Mail
ModuleNotFoundError: No module named 'Mail'
ModuleNotFoundError: No module named 'Mail'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Mail' How to remove the ModuleNotFoundError: No module named 'Mail' error
Java Mail API Tutorial
Java Mail API Tutorial  I have to write programs using the Java Mail API. I want to learn the Java Mail API. Let's know the urls to learn Java Mail... Mail API. The Java Mail API allows you to send, read emails from Java program
php send mail with attachment
php send mail with attachment  Syntax of sending email with attachment in PHP
send mail in PHP
send mail in PHP  what are configurations needed to send mail in php.ini file by localhost ,please give me complete details about this,and code in datail
Read Email using Java Mail API - James
the emails from the James mail server irrespective of the users...Read Email using Java Mail API - James   https://www.roseindia.net/javamail/send-mail.shtml From this sample, i understand that we need to pass user
Read Email using Java Mail API - James
the emails from the James mail server irrespective of the users...Read Email using Java Mail API - James   https://www.roseindia.net/javamail/send-mail.shtml From this sample, i understand that we need to pass user
Read Email using Java Mail API - James
the emails from the James mail server irrespective of the users...Read Email using Java Mail API - James   https://www.roseindia.net/javamail/send-mail.shtml From this sample, i understand that we need to pass user
Read Email using Java Mail API - James
the emails from the James mail server irrespective of the users...Read Email using Java Mail API - James   https://www.roseindia.net/javamail/send-mail.shtml From this sample, i understand that we need to pass user
Email - Electronic mail
Email - Electronic mail In this article we will understand the E-mail and see... internet users. We prefer email over standard mail. Email is free and there are many companies offering email server vices for free. These days Email
Version of javamail>mail dependency
List of Version of javamail>mail dependency
Version of com.aerse>mail dependency
List of Version of com.aerse>mail dependency
Sending mail - JavaMail
Sending mail  Need a simple example of sending mail in Java  Hi,To send email you need a local mail server such as apache james. You first download apache james mail server and install on the local network.Then create
Java Mail - JavaMail
Java Mail  how to email using Java mail or automatic generated mail???  Hi Friend, Please visit the following link: http://www.roseindia.net/javamail/ Hope that it will be helpful for you. Thanks
An E-mail protocol for storage
An E-mail protocol for storage  An E-mail protocol for storage, management and change, espically in corporate offices- a) Message handlindling services, b) Postal Service's, C) Data Storage, D)All of the above, e) None

Ads