~ubuntu-branches/ubuntu/dapper/postfix/dapper-security

« back to all changes in this revision

Viewing changes to src/cleanup/cleanup_state.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-12-07 15:39:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051207153911-hutf07z6i8ty25z5
Tags: 2.2.6-1
* New upstream.
  - the *SQL clients did not uniformly choose the database host from
    the available pool
  - raise the "policy violation" flag when a client request exceeds
    a concurrency or rate limit.
  - don't do smtpd_end_of_data_restrictions after the transaction
    failed due to, e.g., a write error.
  - two messages could get the same message ID due to a race
    condition. This time window was increased when queue file creation
    was postponed from MAIL FROM until the first accepted RCPT TO.  The
    window is closed again.
  - the queue manager did not write a per-recipient defer logfile record
    when the delivery agent crashed after the initial handshake with the
    queue manager, and before reporting the delivery status to the queue
    manager.
  - moved code around from one place to another to make REDIRECT, FILTER,
    HOLD and DISCARD access(5) table actions work in
    smtpd_end_of_data_restrictions.  PREPEND will not be fixed; it must
    be specified before the message content is received.
* Updated Italian translations.  Closes: #336925
* Swedish translations.  Closes: #339746
* Switch to libdb4.3.  Closes: #336488
* Add Replaces: mail-transport-agent.  Closes: #325624
* Merge changes from ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <been_here.h>
45
45
#include <mail_params.h>
46
46
#include <mime_state.h>
 
47
#include <mail_proto.h>
47
48
 
48
49
/* Application-specific. */
49
50
 
64
65
    state->time = 0;
65
66
    state->fullname = 0;
66
67
    state->sender = 0;
67
 
    state->from = 0;
68
 
    state->resent_from = 0;
69
68
    state->recip = 0;
70
69
    state->orig_rcpt = 0;
71
70
    state->return_receipt = 0;
84
83
    state->rcpt_count = 0;
85
84
    state->reason = 0;
86
85
    state->attr = nvtable_create(10);
 
86
    nvtable_update(state->attr, MAIL_ATTR_ORIGIN, MAIL_ATTR_ORG_LOCAL);
87
87
    state->mime_state = 0;
88
88
    state->mime_errs = 0;
 
89
    state->hdr_rewrite_context = MAIL_ATTR_RWR_LOCAL;
89
90
    state->filter = 0;
90
91
    state->redirect = 0;
91
92
    return (state);
101
102
        myfree(state->fullname);
102
103
    if (state->sender)
103
104
        myfree(state->sender);
104
 
    if (state->from)
105
 
        myfree(state->from);
106
 
    if (state->resent_from)
107
 
        myfree(state->resent_from);
108
105
    if (state->recip)
109
106
        myfree(state->recip);
110
107
    if (state->orig_rcpt)