~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to src/oqmgr/qmgr_message.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
                msg_fatal("seek file %s: %m", VSTREAM_PATH(message->fp));
367
367
            curr_offset += message->data_size;
368
368
        }
369
 
        rec_type = rec_get(message->fp, buf, 0);
 
369
        rec_type = rec_get_raw(message->fp, buf, 0, REC_FLAG_NONE);
370
370
        start = vstring_str(buf);
371
371
        if (msg_verbose > 1)
372
372
            msg_info("record %c %s", rec_type, start);
 
373
        if (rec_type == REC_TYPE_PTR) {
 
374
            if ((rec_type = rec_goto(message->fp, start)) == REC_TYPE_ERROR)
 
375
                break;
 
376
            /* Need to update curr_offset after pointer jump. */
 
377
            continue;
 
378
        }
373
379
        if (rec_type <= 0) {
374
380
            msg_warn("%s: message rejected: missing end record",
375
381
                     message->queue_id);
626
632
            } else if (strcmp(name, MAIL_ATTR_ACT_CLIENT_ADDR) == 0) {
627
633
                if (have_log_client_attr == 0 && message->client_addr == 0)
628
634
                    message->client_addr = mystrdup(value);
 
635
            } else if (strcmp(name, MAIL_ATTR_ACT_CLIENT_PORT) == 0) {
 
636
                if (have_log_client_attr == 0 && message->client_port == 0)
 
637
                    message->client_port = mystrdup(value);
629
638
            } else if (strcmp(name, MAIL_ATTR_ACT_PROTO_NAME) == 0) {
630
639
                if (have_log_client_attr == 0 && message->client_proto == 0)
631
640
                    message->client_proto = mystrdup(value);