anchor.diff:      {atomic, ok} = mnesia:transaction(QEmailTransFun),        
       case Email#email.queue of
           false -> spawn_send(Id, Recipient, Email, Context, State);
  -        true -> ok
  +        true -> State
       end.
   
   
  
positive.code: -define(SPAMD_TIMEOUT, 10000).
  
  -record(state, {smtp_relay, smtp_relay_opts, smtp_no_mx_lookups,
                  smtp_verp_as_from, smtp_bcc, override, smtp_spamd_ip, smtp_spamd_port}).
  -record(email_queue, {id, retry_on=inc_timestamp(now(), 10), retry=0, 
                        recipient, email, created=now(), sent, 
                        pickled_context}).
  
negative.code:         EmailFrom -> z_convert:to_list(EmailFrom)
      end.
  
  %% @doc Remove a worker Pid from the server state.
  remove_worker(Pid, State) ->
      Filtered = lists:filter(fun({_,P}) -> P =/= Pid end, State#state.sending),
      State#state{sending=Filtered}.
  
  %% =========================
  %% SENDING related functions
  