forked from IF-LK-2020/mymail
Added a bit of stuff i forgot lol
This commit is contained in:
@@ -268,7 +268,6 @@ public class MyMail {
|
|||||||
mes = con.receive();
|
mes = con.receive();
|
||||||
} // end of while
|
} // end of while
|
||||||
Mail mail = new Mail(pNumber, date, sender, subject, text);
|
Mail mail = new Mail(pNumber, date, sender, subject, text);
|
||||||
System.out.println(mail);
|
|
||||||
return mail;
|
return mail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +287,6 @@ public class MyMail {
|
|||||||
* @todo Vor Löschen prüfen, ob die Mail auf dem Server dieselbe wie pMail ist.
|
* @todo Vor Löschen prüfen, ob die Mail auf dem Server dieselbe wie pMail ist.
|
||||||
*/
|
*/
|
||||||
public void deleteMail( Mail pMail ) {
|
public void deleteMail( Mail pMail ) {
|
||||||
System.out.println(pMail);
|
|
||||||
// Verbindung erstellen und prüfen
|
// Verbindung erstellen und prüfen
|
||||||
|
|
||||||
// Anmeldung durchführen und prüfen
|
// Anmeldung durchführen und prüfen
|
||||||
@@ -346,10 +344,11 @@ public class MyMail {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
gui.setError(lastError);
|
gui.setError(lastError);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gui.setStatus("E-Mail erfolgreich gelöscht.");
|
||||||
gui.removeMailFromList(pMail);
|
gui.removeMailFromList(pMail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user