当前位置: 技术问答>java相关
javamail里,folder的名字该怎么设
来源: 互联网 发布时间:2015-01-06
本文导语: | 看看这个例子吧。 /* * @(#)folderlist.java 1.22 98/06/10 * * Copyright (c) 1996-1997 Sun Microsystems, Inc. All Rights Reserved. * */ import java.util.Properties; import javax.mail.*; /** * Demo app that exercises the Message interfaces....
|
看看这个例子吧。
/*
* @(#)folderlist.java 1.22 98/06/10
*
* Copyright (c) 1996-1997 Sun Microsystems, Inc. All Rights Reserved.
*
*/
import java.util.Properties;
import javax.mail.*;
/**
* Demo app that exercises the Message interfaces.
* List information about folders.
*
* @author John Mani
* @author Bill Shannon
*/
public class folderlist {
static String protocol = null;
static String host = null;
static String user = null;
static String password = null;
static String root = null;
static String pattern = "%";
static boolean recursive = false;
static boolean debug = false;
public static void main(String argv[]) throws Exception {
int optind;
for (optind = 0; optind
/*
* @(#)folderlist.java 1.22 98/06/10
*
* Copyright (c) 1996-1997 Sun Microsystems, Inc. All Rights Reserved.
*
*/
import java.util.Properties;
import javax.mail.*;
/**
* Demo app that exercises the Message interfaces.
* List information about folders.
*
* @author John Mani
* @author Bill Shannon
*/
public class folderlist {
static String protocol = null;
static String host = null;
static String user = null;
static String password = null;
static String root = null;
static String pattern = "%";
static boolean recursive = false;
static boolean debug = false;
public static void main(String argv[]) throws Exception {
int optind;
for (optind = 0; optind