forked from IF-LK-2020/mymail
Added a bit of stuff i forgot lol
This commit is contained in:
parent
53501192bd
commit
c60b471fa2
|
@ -268,7 +268,6 @@ public class MyMail {
|
|||
mes = con.receive();
|
||||
} // end of while
|
||||
Mail mail = new Mail(pNumber, date, sender, subject, text);
|
||||
System.out.println(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.
|
||||
*/
|
||||
public void deleteMail( Mail pMail ) {
|
||||
System.out.println(pMail);
|
||||
// Verbindung erstellen und prüfen
|
||||
|
||||
// Anmeldung durchführen und prüfen
|
||||
|
@ -346,10 +344,11 @@ public class MyMail {
|
|||
}
|
||||
else {
|
||||
gui.setError(lastError);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gui.setStatus("E-Mail erfolgreich gelöscht.");
|
||||
gui.removeMailFromList(pMail);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue