⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getmessageexample.java

📁 java邮件系统的雷暴国恢复对均衡附近分更好看高呼口号刚开
💻 JAVA
字号:
import java.io.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;

public class GetMessageExample {
  public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];

    // Create empty properties

    // Get session

    // Get the store

    // Connect to store

    // Get folder

    // Open read-only

    BufferedReader reader = new BufferedReader (
      new InputStreamReader(System.in));

    // Get directory

    for (int i=0, n=message.length; i<n; i++) {

       // Display from field and subject

      System.out.println("Do you want to read message? [YES to read/QUIT to end]");
      String line = reader.readLine();
      if ("YES".equals(line)) {

        // Display message content

      } else if ("QUIT".equals(line)) {
        break;
      }
    }

    // Close connection 
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -