Skip to content

Commit

Permalink
Einstellbear machen ob ZIP Mail Anhänge in DB gespeichert werden (#280)
Browse files Browse the repository at this point in the history
* Einstellbear machen ob ZIP Mail Anhänge in DB gespeichert werden

* Einstellung nach Mail verschoben
  • Loading branch information
lenilsas authored Aug 5, 2024
1 parent fe6d36f commit a5b066c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/de/jost_net/JVerein/gui/control/EinstellungControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,6 @@ public void handleStoreSpendenbescheinigungen()
.getValue());
e.setUnterschriftdrucken((Boolean) unterschriftdrucken.getValue());
e.setUnterschrift((byte[]) unterschrift.getValue());
e.setAnhangSpeichern((Boolean) anhangspeichern.getValue());
e.store();
Einstellungen.setEinstellung(e);
GUI.getStatusBar().setSuccessText("Einstellungen gespeichert");
Expand Down Expand Up @@ -2265,6 +2264,8 @@ public void handleStoreMail()

wallet.set("smtp_auth_pwd", e.getSmtpAuthPwd());
wallet.set("imap_auth_pwd", e.getImapAuthPwd());

e.setAnhangSpeichern((Boolean) anhangspeichern.getValue());

e.store();
Einstellungen.setEinstellung(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void bind() throws Exception
control.getImapSentFolder());
cont.addSeparator();
cont.addLabelPair("Signatur", control.getMailSignatur());
cont.addLabelPair("Bei Mail Versand von Formularen Anhang in DB speichern", control.getAnhangSpeichern());

ButtonArea buttons = new ButtonArea();
buttons.addButton("Hilfe", new DokumentationAction(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void bind() throws Exception
cont.addLabelPair("Unterschrift drucken",
control.getUnterschriftdrucken());
cont.addLabelPair("Unterschrift", control.getUnterschrift());
cont.addLabelPair("Spendenbescheinigung Anhang bei Mail Versand in DB speichern", control.getAnhangSpeichern());

ButtonArea buttons = new ButtonArea();
buttons.addButton("Hilfe", new DokumentationAction(),
Expand Down
8 changes: 5 additions & 3 deletions src/de/jost_net/JVerein/io/ZipMailer.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ public void run(ProgressMonitor monitor) throws ApplicationException
me.setMail(ml);
me.setVersand(new Timestamp(new Date().getTime()));
me.store();

ma.setMail(ml);
ma.store();
if (Einstellungen.getEinstellung().getAnhangSpeichern())
{
ma.setMail(ml);
ma.store();
}
}
catch (SendFailedException e1)
{
Expand Down

0 comments on commit a5b066c

Please sign in to comment.