/*
 * $Id$
 * $URL$
 */

package org.subethamail.web.action;

import lombok.Getter;
import lombok.Setter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.subethamail.common.MailUtils;
import org.subethamail.core.lists.i.MailData;
import org.subethamail.web.Backend;

/**
 * This action is used primarily on msg_send.jsp to initialize the data for that page.
 *
 * @author Jon Stevens
 * @author Jeff Schnitzer
 */
public class PrepareReply extends PostMessage
{
	/** */
	private final static Logger log = LoggerFactory.getLogger(PrepareReply.class);

	public class Model extends PostMessage.Model
	{
		@Getter @Setter MailData mailData;
	}

	/** */
	@Override
	public void initialize()
	{
		this.getCtx().setModel(new Model());
	}

	/** */
	@Override
	public void authExecute() throws Exception
	{
		Model model = (Model)this.getCtx().getModel();

		log.debug("msgId: " + model.msgId);

		if (model.msgId != null && model.msgId.longValue() > 0)
		{
			model.mailData = Backend.instance().getArchiver().getMail(model.msgId);
			model.subject = MailUtils.cleanRe(model.mailData.getSubject(), null, true);
			model.listId = model.mailData.getListId();
		}
	}
}

@@ -73,22 +73,34 @@
 ort 
-lombok.Getter;
+java.util.logging.Level;%0D%0A
 %0D%0Aim
@@ -115,17 +115,17 @@
 bok.
-S
+G
 etter;%0D%0A
 %0D%0Aim
@@ -124,67 +124,63 @@
 r;%0D%0A
-%0D%0A
 import 
-org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;
+lombok.Setter;%0D%0Aimport lombok.extern.java.Log;%0D%0A
 %0D%0Aim
@@ -458,16 +458,22 @@
 r%0D%0A */%0D%0A
+@Log%0D%0A
 public c
@@ -518,100 +518,8 @@
 %0A%7B%0D%0A
-%09/** */%0D%0A%09private final static Logger log = LoggerFactory.getLogger(PrepareReply.class);%0D%0A%0D%0A
 %09pub
@@ -839,22 +839,31 @@
 log.
-debug(
+log(Level.FINE,
 %22msgId: 
 %22 + 
@@ -862,11 +862,13 @@
 Id: 
-%22 +
+%7B0%7D%22,
  mod

switch logging framework