Home > Back-end >  Javamail of parsing the email body contenttype. IndexOf (" name ");
Javamail of parsing the email body contenttype. IndexOf (" name ");

Time:10-07

I just want to know why there are so 1
String contenttype=part. GetContentType ();
Int nameindex=contenttype. IndexOf (" name ");
In part, the getcontenttype () to find a name why
If (nameindex!=1)
Conname=true;
System. The out. Println (" CONTENTTYPE: "+ CONTENTTYPE);
If (part. IsMimeType (" text/plain ") & amp; & ! Conname) {
Bodytext. Append ((String) part. GetContent ());

Determine the contenttype. IndexOf (" name "); Is there, what's the use of ah, didn't understand why to determine this,,, o great god ~ ~ ~

CodePudding user response:

If you have any picture to send original name attribute

CodePudding user response:

3 q ~ thank big brother
  • Related