亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inprotocol.java

?? 手機郵箱撒的方式方式方式的
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
            connection.unQuit();            connection.clearInput();            switch (runMode) {                case InProtocol.CLOSE:                    _close(inProtocolTask);                    break;                case InProtocol.GET_NEW_MAILS:                    getNewMails();                    break;                case InProtocol.REDOWNLOAD_BODY:                case InProtocol.RETRIEVE_BODY:                case InProtocol.CONVERT_BODY:                    downloadBody();                    break;                case InProtocol.REMOVE_MAILS:                    removeMails();                    break;                case InProtocol.SET_FLAGS:                	setFlags();                	break;                case InProtocol.REMOVE_FLAGS:                    removeFlags();                	break;                case IMAP4.GET_URL:                    getURL();                    break;            }                    } catch (MyException ex) {            ex.printStackTrace();            resolveMyExceptionWhileRunning( ex);        } catch (Error e) {            e.printStackTrace();            resolveExceptions("100: " + e + "/ " + account.getEmail(), SOURCE_FILE);        } catch (Exception ex) {            ex.printStackTrace();            resolveExceptions("100: " + ex + "/ " + account.getEmail(), SOURCE_FILE);        }        actionAfterTasksCompleted();            }    public synchronized void getBody(MessageHeader header, InBox box) {          if (DEBUG) System.out.println("DEBUG InProtocol.getBody(MessageHeader) - before execution");                if (actHeader != null) //already fetching        {            if (DEBUG) { System.out.println("DEBUG InProtocol.getBody already fetching"); }            return;        }        //ok, its not nice thing to put inThreadGlobal() immediately here, to make InProtocol be busy        //but it triggers inBox to draw the progress bar right after we press an action button        //otherwise it can make an impatient user pressing the buttons more times thinking that the operation didnt undergo.        //and mess our parsing        incThreadGlobal();        actHeader = header;        reDownloadMode = -1;        runMode = InProtocol.RETRIEVE_BODY;        this.targetBox = box;        this.reportBox = box;        if (DEBUG) { System.out.println("DEBUG InProtocol.getBody starting retrieving body"); }        inProtocolTask = new InProtocolTask(this, "Retrieving mail body");        inProtocolTask.start();    }    /**     * Sets the given message flags at server side.      * @param header			Message to set flags for     * @param flags				Flags to set, e.g. "(\Seen \Answered)"     */    public synchronized void setFlags(MessageHeader header, String flags, int ACTION, TheBox reportBox) {        //ok, its not nice thing to put inThreadGlobal() immediately here, to make InProtocol be busy        //but it triggers inBox to draw the progress bar right after we press an action button        //otherwise it can make an impatient user pressing the buttons more times thinking that the operation didnt undergo.        //and mess our parsing        incThreadGlobal();                actHeader = header;        flagsToSet = flags;        this.reportBox = reportBox;        this.targetBox = (InBox)reportBox;			//TODO Ask David if it is correct        if (ACTION == SET_FLAGS)        	runMode = InProtocol.SET_FLAGS;        else        	runMode = InProtocol.REMOVE_FLAGS;        inProtocolTask = new InProtocolTask(this, "Setting flags at IMAP server");        inProtocolTask.start();    }        //called to redownload a partial mail (some parts of a mail is missing)    public synchronized void getConvertedBody(MessageHeader header, byte mode, InBox box) {        if (DEBUG) { System.out.println("DEBUG InProtocol.getConvertedBody before execution"); }                if (actHeader != null) //already fetching        {            return;        }        incThreadGlobal();        actHeader = header;        reDownloadMode = mode;        runMode = InProtocol.CONVERT_BODY;        this.targetBox = box;        this.reportBox = box;        //Thread t = new Thread(this);		//t.start();        inProtocolTask = new InProtocolTask(this, "Converting bodypart");        inProtocolTask.start();        //t.setPriority(Thread.MAX_PRIORITY);    }    //called to redownload a partial mail (some parts of a mail is missing)    public synchronized void regetBody(MessageHeader header, byte mode, InBox box) {        if (DEBUG) {  System.out.println("DEBUG InProtocol.regetBody - before execution"); }                if (actHeader != null) //already fetching        {            return;        }        incThreadGlobal();        actHeader = header;        reDownloadMode = mode;        runMode = InProtocol.REDOWNLOAD_BODY;        this.targetBox = box;        this.reportBox = box;        inProtocolTask = new InProtocolTask(this, "Redownloading mail body");        inProtocolTask.start();    }    // deletes all the mails that are in the queue deleted    public synchronized void removeMsgs(InBox box) {        if (DEBUG) { System.out.println("DEBUG InProtocol.removeMsgs - before execution"); }                 incThreadGlobal();        runMode = InProtocol.REMOVE_MAILS;        this.targetBox = box;        this.reportBox = box;        inProtocolTask = new InProtocolTask(this, "Removing mails");        inProtocolTask.start();    }    public synchronized void close(boolean forcedDisc, TheBox reportBox) { //closes and must close streams for correct reopen/relogin        if (this.forcedDisc) //some thread allready wants really to disconnect        {            return;        }        incThreadGlobal();        this.forcedDisc = forcedDisc;        runMode = InProtocol.CLOSE;        this.reportBox = reportBox;        inProtocolTask = new InProtocolTask(this, "Closing connection");        inProtocolTask.start();    }    public synchronized void poll(InBox box) {        runMode = InProtocol.POLL;        this.targetBox = box;        this.reportBox = box;        inProtocolTask = new InProtocolTask(this, "Polling");        inProtocolTask.disableDisplayingProgress();        inProtocolTask.start();    }    public synchronized void saveMailToSent(String inMailText, InBox box) {        if (DEBUG) { System.out.println("DEBUG InProtocol.saveMailToSent " + inMailText); }        saveMailData = inMailText;        incThreadGlobal();        runMode = InProtocol.SAVE_MAIL_SENT;        this.targetBox = box;        this.reportBox = box;        inProtocolTask = new InProtocolTask(this, "Saving mails to server's Sent folder");        inProtocolTask.start();    }    private boolean doPolling() {        if (runMode == InProtocol.POLL) {            lock();            try {                connection.unQuit();                connection.clearInput();                if (open(null)) {                    findFirstNewMailWhilePolling();                }            } catch (MyException ex) {                ex.printStackTrace();                //do nothing, be silent bitch            } catch (Exception ex) {                ex.printStackTrace();            }            unlock();            return true;        }        return false;    }    /**     * Handles input line with flags - set processed message header flags      * according to these flags.     * @param line protocol line with flags     */    private void handleLineWithFlags(String line) {        if (!line.startsWith(" FLAGS (")) return;                 String flags = line.substring(8); //length of " FLAGS ("        //length of " FLAGS ("        flags = flags.substring(0, flags.indexOf(")"));        handleFlags(actHeader, flags);    }    /**     * Parses body of the multipart e-mail.     *      * @param header     * @param progress     * @throws MyException     */    private void parseBodyOfMultipartMessage(MessageHeader header, StoppableProgress progress) throws MyException {        //boundary of the actual email body,         //it may be changed if the email has many encapsulated emails within its body                //multipart mail: fetch all body parts that we want to fetch    	//StringBuffer bf = new StringBuffer();        int linesCount = 0;        final String endBoundary = header.getBoundary() + "--"; //this is where the email body ends          if (DEBUG) System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - endBoundary=" + endBoundary);        byte nextIncomplete = 0;        byte actualBPNumber = -1; //counter of actual body part        //boundary of the actual email body,        //it may be changed if the email has many encapsulated emails within its body        String bodyBoundary = header.getBoundary();        Stack/*<String>*/ boundaries = new Stack();          if (DEBUG) System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - bodyBoundary=" + bodyBoundary);        String line = connection.getLine();          if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");          // process the body until end of mail (boundary end is found or END_OF_MAIL)        boolean wasStopped = false; // true if fetching of bodypart was stopped        boolean redownloaded = false;        while ( !line.startsWith(END_OF_MAIL) && !line.startsWith(endBoundary) ) {            ++actualBPNumber;                        ////if it's not IMAP and redownloading a particular bodypart            //if ( ! (account.isIMAP() && reDownloadMode != -1) ) {            if ( !account.isIMAP() || reDownloadMode == -1 ) { // Betlista: De Morgan, hope it's the same as line above                actuallyParsedBodyPart = new BodyPart(header);                                //skip everything to the boundary                while (!line.startsWith(bodyBoundary)) {                    line = connection.getLine();                      if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");                }                //but if its also endBoundary then its the end of the mail                if (line.startsWith(endBoundary)) {                    break;                }                if (runMode == REDOWNLOAD_BODY) {                    //find an incomplete body part                    if (reDownloadMode == -1) {                        nextIncomplete = actualBPNumber;                    } else {                        //redownloading a particular part                        nextIncomplete = reDownloadMode;                    }                    //if we want to redownload a body part but it's not the actual one                    if (actualBPNumber < nextIncomplete) {                        //skip the line to the body part                        continue;                    }                    //if all incomplete parts have been downloaded, stop the downloading operation                    if (actualBPNumber > nextIncomplete) {                        //close(false); //let's save the connection and save the bandwidth                        break;                    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人免费观看| 精品不卡在线视频| 国内精品免费**视频| 一区二区三区资源| 自拍偷拍亚洲激情| 1024亚洲合集| 樱桃国产成人精品视频| 免费一级欧美片在线观看| 91电影在线观看| 欧美亚洲国产一区二区三区va | 美女视频黄频大全不卡视频在线播放| 成人福利视频在线| 菠萝蜜视频在线观看一区| 成人黄色小视频| 色哦色哦哦色天天综合| 色狠狠一区二区| 91精品国产综合久久精品app| 4438x亚洲最大成人网| 日韩限制级电影在线观看| 久久久综合视频| 国内精品国产成人国产三级粉色| 国产精品123区| 99精品国产视频| 欧美日韩精品福利| 26uuu国产日韩综合| 国产精品麻豆欧美日韩ww| 国产一区二区三区视频在线播放| 中文字幕日本不卡| 亚洲小说欧美激情另类| 精品影视av免费| 99国产欧美久久久精品| 在线不卡a资源高清| 久久视频一区二区| 一区二区三区欧美日| 奇米在线7777在线精品| av日韩在线网站| 欧美一二三区在线| 亚洲天天做日日做天天谢日日欢| 视频一区视频二区中文| 成人久久视频在线观看| 91精品欧美久久久久久动漫| 国产日产欧产精品推荐色| 国产精品久久福利| 日日噜噜夜夜狠狠视频欧美人 | 久久久影视传媒| 亚洲综合小说图片| 国产精品一线二线三线| 亚洲欧美日韩中文播放| 亚洲精品一区二区三区香蕉 | 在线精品亚洲一区二区不卡| 精品国精品自拍自在线| 亚洲一区二区三区四区五区黄| 国产美女精品在线| 欧美日韩免费观看一区二区三区| 国产欧美视频在线观看| 日本不卡在线视频| 在线视频国内自拍亚洲视频| 国产欧美1区2区3区| 麻豆国产欧美日韩综合精品二区| 91精品福利在线| 中文字幕一区av| 国产精品一区二区久久不卡 | 欧美日韩国产综合视频在线观看| 欧美激情一区二区三区四区| 久久精品久久99精品久久| 欧美怡红院视频| 色悠悠久久综合| 精品中文字幕一区二区小辣椒 | 美女在线观看视频一区二区| 色吊一区二区三区| 中文字幕第一区二区| 国产尤物一区二区在线| 日韩精品专区在线| 麻豆精品一区二区av白丝在线| 欧美日韩卡一卡二| 亚洲国产成人av网| 欧美性受极品xxxx喷水| 亚洲午夜精品网| 精品视频123区在线观看| 亚洲午夜精品久久久久久久久| 91麻豆免费观看| 亚洲理论在线观看| 亚洲图片欧美视频| 欧美久久久久久久久中文字幕| 亚洲一区二区av在线| 欧美性生活久久| 婷婷成人综合网| 日韩视频中午一区| 国产一区二区导航在线播放| 亚洲成av人片在线观看无码| 久久成人18免费观看| 精品国产一区久久| 国产成人在线视频播放| 国产精品初高中害羞小美女文| 99r国产精品| 亚洲成人一区二区| 欧美v亚洲v综合ⅴ国产v| 国产成人综合在线观看| 一区二区三区在线观看视频| 亚洲国产日韩av| 日韩欧美中文字幕制服| 国产精品自拍网站| 亚洲视频小说图片| 91精品国产综合久久久久久漫画| 青青草国产精品97视觉盛宴| 久久久久久久久久看片| 1区2区3区欧美| 欧美一级国产精品| 成人黄色免费短视频| 亚洲综合激情网| 26uuu色噜噜精品一区二区| 99免费精品视频| 日韩国产欧美一区二区三区| 欧美极品少妇xxxxⅹ高跟鞋| 精品国产1区2区3区| 亚洲一区二区不卡免费| 欧美激情资源网| 欧美一区二区性放荡片| 成人av电影在线网| 天天操天天干天天综合网| 国产欧美日韩不卡免费| 欧美日本在线视频| 99久久er热在这里只有精品15 | 欧美丰满一区二区免费视频| 国产一区二区精品久久| 午夜久久久久久久久| 国产精品久久午夜| 精品少妇一区二区三区| 欧美日本在线一区| 一本久道中文字幕精品亚洲嫩| 激情综合一区二区三区| 亚洲成av人片在线观看无码| 97精品久久久午夜一区二区三区| 免费不卡在线视频| 欧美一区二区三区婷婷月色| 95精品视频在线| 国产传媒欧美日韩成人| 极品少妇xxxx精品少妇| 麻豆久久久久久| 日韩国产在线观看一区| 国内精品久久久久影院薰衣草| 精品久久久久99| 91麻豆精品国产自产在线观看一区| 色www精品视频在线观看| 成人aaaa免费全部观看| 成人综合在线视频| 国产精品一区二区91| 国内成+人亚洲+欧美+综合在线| 日本美女一区二区三区| 五月天激情综合网| 天天色 色综合| 欧美aaaaa成人免费观看视频| 亚洲h精品动漫在线观看| 亚洲成人综合视频| 无码av中文一区二区三区桃花岛| 亚洲一区二区三区四区在线免费观看 | 日本久久电影网| 一本到高清视频免费精品| av激情亚洲男人天堂| 99精品在线免费| 91小视频在线| 欧美性做爰猛烈叫床潮| 欧美精品乱码久久久久久| 91精品国产福利在线观看| 一区二区三区四区在线| 欧美日韩一二三区| 91精品欧美久久久久久动漫| 91浏览器在线视频| 激情综合网最新| 国产91高潮流白浆在线麻豆| 丁香网亚洲国际| 色综合视频一区二区三区高清| 色先锋aa成人| 91精品国产色综合久久久蜜香臀| 欧美一级片免费看| 久久久久久黄色| 亚洲日本在线天堂| 无吗不卡中文字幕| 国产99久久久国产精品潘金网站| 成人app在线| 欧美一区二区在线看| 日本一区二区三区在线观看| 亚洲人成网站在线| 男女激情视频一区| www.日韩av| 免费在线观看一区二区三区| 国产米奇在线777精品观看| 99国产精品久| 欧美r级在线观看| 亚洲另类春色校园小说| 精品无码三级在线观看视频| 91麻豆国产精品久久| 欧美一区午夜视频在线观看| 亚洲欧洲国产日韩| 日韩国产欧美三级| 91在线精品秘密一区二区| 日韩欧美在线网站| 亚洲激情欧美激情| av激情成人网| 91精品国产手机|