20. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/6/2017 8:32:14 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

20.1 Files compared

# Location File Last Modified
1 HC 837 Compliance 05122017.zip\HC 837 Compliance 05122017\FPPS_app\FPPS_app\src\hot\gov\va\med\fee Email.java Mon May 9 19:11:54 2016 UTC
2 HC 837 Compliance 05122017.zip\HC 837 Compliance 05122017\FPPS_app\FPPS_app\src\hot\gov\va\med\fee Email.java Wed Jul 5 13:29:33 2017 UTC

20.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 218
Changed 2 6
Inserted 0 0
Removed 0 0

20.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

20.4 Active regular expressions

No regular expressions were active.

20.5 Comparison detail

  1   /*
  2    *
  3    */
  4   package go v.va.med.f ee;
  5  
  6   import jav ax.mail.*;
  7   import jav ax.mail.in ternet.*;
  8  
  9   import org .jboss.sea m.log.Log;
  10   import org .jboss.sea m.log.Logg ing;
  11  
  12   import jav a.util.*;
  13  
  14   /**
  15    *
  16    * @author  vhahacdoa nsc
  17    */
  18   public cla ss Email {
  19      
  20         priv ate Log lo g = Loggin g.getLog(E mail.class );
  21  
  22  
  23           St ring recip ients[]  =  {""};
  24           St ring subje ct = "";
  25           St ring messa ge = "";
  26             String fro m = " EMAIL ";
  27                   
  28           pu blic Strin g postMail (String re cipients[] , String s ubject, St ring messa ge , Strin g from, bo olean send ReadNotice , String r eadNoticeA ddress) th rows Messa gingExcept ion, Addre ssExceptio n
  29           {
  30                boolean  debug = fa lse;
  31                String r et = "";
  32                 //Set t he host sm tp address
  33                 Propert ies props  = new Prop erties();
  34                   props.put( "mail.smtp .host", " DNS          ");
  35                   props.put( "mail.host ", " DNS          ");               
  36                 
  37                // creat e some pro perties an d get the  default Se ssion
  38                Session  session =  Session.ge tDefaultIn stance(pro ps, null);
  39                session. setDebug(d ebug);
  40  
  41                // creat e a messag e
  42                Message  msg = new  MimeMessag e(session) ;
  43  
  44                // set t he from an d to addre ss
  45                Internet Address ad dressFrom  = new Inte rnetAddres s(from);
  46                msg.setF rom(addres sFrom);
  47  
  48                Internet Address[]  addressTo  = new Inte rnetAddres s[recipien ts.length]
  49                for (int  i = 0; i  < recipien ts.length;  i++)
  50                {
  51                    try{
  52                         if(recipie nts[i]!=nu ll && !rec ipients[i] .equals("" )){                          
  53                             Intern etAddress  addressTem p = new In ternetAddr ess(recipi ents[i]);                           
  54                             addres sTemp.vali date();
  55                             addres sTo[i] = a ddressTemp ;
  56                                      msg.setR ecipients( Message.Re cipientTyp e.TO, addr essTo);
  57                
  58                                 
  59                                 if (sendReadN otice){
  60                                      msg.setH eader("Dis position-N otificatio n-To", rea dNoticeAdd ress);
  61                                 }
  62                                
  63                                      
  64                                 //  Setting t he Subject  and Conte nt Type
  65                                 ms g.setSubje ct(subject );
  66                                 ms g.setConte nt(message , "text/ht ml");
  67                                 Tr ansport.se nd(msg);                               
  68                
  69                                 Gr egorianCal endar gc =  new Grego rianCalend ar();
  70                                 St ring dts =  (gc.get(C alendar.MO NTH)+1) +" /"+gc.get( Calendar.D AY_OF_MONT H)+"/"+gc. get(Calend ar.YEAR)+  " at " + g c.get(Cale ndar.HOUR_ OF_DAY) +  ":" + gc.g et(Calenda r.MINUTE)  + ":" + gc .get(Calen dar.SECOND );
  71                                 re t += "mess age sent a t " + dts;                                            
  72                         }
  73                    } ca tch(Addres sException  ae){
  74                             ret+=" AddressExc eption ERR OR: " + ae .getMessag e();
  75                             log.er ror(ae.get Message(),  ae);
  76                    } ca tch(Messag ingExcepti on me){
  77                             ret+=" MessagingE xception E rror: " +  me.getMess age();
  78                             log.er ror(me.get Message(),  me);
  79                    } ca tch(Except ion e){
  80                             ret+=" Exception  Error: " +  e.getMess age();
  81                             log.er ror(e.getM essage(),  e);
  82                    }                                   
  83                }    
  84                
  85                return r et;
  86           }
  87   }
  88  
  89  
  90  
  91  
  92  
  93  
  94  
  95  
  96  
  97  
  98  
  99  
  100  
  101  
  102  
  103  
  104  
  105  
  106  
  107  
  108  
  109  
  110  
  111  
  112