Browse Source
if login fails due to wrong auth, it is no longer repeated. instead, the list is disabelddrop_old_mail
Stephan Richter
3 years ago
15 changed files with 276 additions and 97 deletions
@ -0,0 +1,7 @@ |
|||||||
|
package de.srsoftware.widerhall.mail; |
||||||
|
|
||||||
|
import javax.mail.MessagingException; |
||||||
|
|
||||||
|
public interface ProblemListener { |
||||||
|
public void onImapException(MessagingException e); |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8" /> |
||||||
|
<script src="jquery"></script> |
||||||
|
<script src="js"></script> |
||||||
|
<link rel="stylesheet" href="css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
«navigation()» |
||||||
|
«userinfo()» |
||||||
|
«messages()» |
||||||
|
<h1>Widerhall List Setup</h1> |
||||||
|
«list_data_form()» |
||||||
|
«footer()» |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,59 @@ |
|||||||
|
<form id="list_data" method="POST"> |
||||||
|
<fieldset> |
||||||
|
<legend>List configuration</legend> |
||||||
|
<fieldset> |
||||||
|
<legend>Basic data</legend> |
||||||
|
<label> |
||||||
|
<input type="text" name="name" value="«if(data.name)»«data.name»«else»«data.list.name»«endif»" id="name" /> |
||||||
|
List name |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="text" name="email" value="«if(data.email)»«data.email»«else»«data.list.email.prefix»@«data.list.email.domain»«endif»" id="email" /> |
||||||
|
List E-Mail Address |
||||||
|
</label> |
||||||
|
</fieldset> |
||||||
|
<fieldset> |
||||||
|
<legend>IMAP protocol</legend> |
||||||
|
<label> |
||||||
|
<input type="text" name="imap_host" value="«if(data.imap_host)»«data.imap_host»«else»«data.list.imap_host»«endif»" id="imap_host" /> |
||||||
|
Hostname |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="number" name="imap_port" value="«if(data.imap_port)»«data.imap_port»«else»«data.list.imap_port»«endif»" id="imap_port" /> |
||||||
|
Port |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="text" name="imap_user" value="«if(data.imap_user)»«data.imap_user»«else»«data.list.imap_user»«endif»" id="imap_user" /> |
||||||
|
Username |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="password" name="imap_pass" value="«data.imap_pass»" id="imap_pass" /> |
||||||
|
Password |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="text" name="inbox" value="«if(data.inbox)»«data.inbox»«else»INBOX«endif»" id="imap_inbox" /> |
||||||
|
Inbox name |
||||||
|
</label> |
||||||
|
</fieldset> |
||||||
|
<fieldset> |
||||||
|
<legend>SMTP protocol</legend> |
||||||
|
<label> |
||||||
|
<input type="text" name="smtp_host" value="«if(data.smtp_host)»«data.smtp_host»«else»«data.list.smtp_host»«endif»" id="smtp_host" /> |
||||||
|
Hostname |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="number" name="smtp_port" value="«if(data.smtp_port)»«data.smtp_port»«else»«data.list.smtp_port»«endif»" id="smtp_port" /> |
||||||
|
Port |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="text" name="smtp_user" value="«if(data.smtp_user)»«data.smtp_user»«else»«data.list.smtp_user»«endif»" id="smtp_user" /> |
||||||
|
Username |
||||||
|
</label> |
||||||
|
<label> |
||||||
|
<input type="password" name="smtp_pass" value="«data.smtp_pass»" id="smtp_pass" /> |
||||||
|
Password |
||||||
|
</label> |
||||||
|
</fieldset> |
||||||
|
<button type="submit">Save mailing list</button> |
||||||
|
</fieldset> |
||||||
|
</form> |
@ -1,5 +1,9 @@ |
|||||||
<nav> |
<nav> |
||||||
<a href="index">Home</a> |
<a href="index">Home</a> |
||||||
<a href="admin">Administration</a> |
<a href="admin">Administration</a> |
||||||
<!-- a class="button" href="reload" />Reload templates</a --> |
<script type="text/javascript"> |
||||||
|
if ('«data.user.permissions»'.includes('admin')){ |
||||||
|
$('<a/>',{class:'button',href:'reload'}).text('Reload templates').appendTo($('nav')); |
||||||
|
} |
||||||
|
</script> |
||||||
</nav> |
</nav> |
Loading…
Reference in new issue