MCPcopy Create free account
hub / github.com/M66B/FairEmail / list

Method list

app/src/main/java/com/sun/mail/pop3/Protocol.java:859–872  ·  view source on GitHub ↗

Return the size of the message using the LIST command.

(int msg)

Source from the content-addressed store, hash-verified

857 * Return the size of the message using the LIST command.
858 */
859 synchronized int list(int msg) throws IOException {
860 Response r = simpleCommand("LIST " + msg);
861 int size = -1;
862 if (r.ok && r.data != null) {
863 try {
864 StringTokenizer st = new StringTokenizer(r.data);
865 st.nextToken(); // skip message number
866 size = Integer.parseInt(st.nextToken());
867 } catch (RuntimeException e) {
868 // ignore it
869 }
870 }
871 return size;
872 }
873
874 /**
875 * Return the size of all messages using the LIST command.

Callers

nothing calls this directly

Calls 4

simpleCommandMethod · 0.95
multilineCommandMethod · 0.95
nextTokenMethod · 0.45
parseIntMethod · 0.45

Tested by

no test coverage detected