Changeset 214 for trunk/src/sh_forward.c


Ignore:
Timestamp:
Feb 17, 2009, 10:54:26 PM (16 years ago)
Author:
katerina
Message:

Rewrite mail subsystem for more flexibility (closes ticket #141).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_forward.c

    r210 r214  
    131131#include "sh_entropy.h"
    132132#include "sh_html.h"
    133 #include "sh_mail.h"
     133#include "sh_nmail.h"
    134134#include "sh_socket.h"
    135135#define SH_NEED_GETHOSTBYXXX
     
    791791      if (status != 0)
    792792        {
    793           (void) push_tail_list (fifo, popmsg);
     793          (void) push_tail_list (fifo, popmsg, 0, NULL);
    794794          SH_FREE(popmsg);
    795           if (SH_FIFO_MAX == push_list (fifo, errmsg))
     795          if (SH_FIFO_MAX == push_list (fifo, errmsg, 0,NULL))
    796796            {
    797797              SL_RETURN (-2, _("sh_forward"));
     
    812812                         sh.srvexport.name);
    813813      failed = BAD;
    814       if (SH_FIFO_MAX == push_list (fifo, errmsg))    /* push message on stack */
     814      if (SH_FIFO_MAX == push_list (fifo, errmsg, 0, NULL))/* push on stack */
    815815        {
    816816          SL_RETURN (-2, _("sh_forward"));
     
    50625062            sh_forward_mark_dead ();
    50635063
    5064 #if defined(SH_WITH_MAIL)
    5065             reset_count_dev_mail();
    5066 #endif
    50675064            reset_count_dev_console();
    50685065            reset_count_dev_time();
     
    52845281        {
    52855282          TPT((0, FIL__, __LINE__, _("msg=<Flush mail queue.>\n")))
    5286           (void) sh_mail_msg (NULL);
     5283          (void) sh_nmail_flush ();
    52875284          sh.mailTime.alarm_last = tcurrent;
    52885285        }
Note: See TracChangeset for help on using the changeset viewer.