Mercurial > dovecot > core-2.2
comparison src/lda/main.c @ 10849:638c4ea4a9ce HEAD
Set input stream names for mail file streams.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 06 Mar 2010 14:04:42 +0200 |
parents | b7c8221cea5b |
children | 0f98525e4567 |
comparison
equal
deleted
inserted
replaced
10848:2375e84fd344 | 10849:638c4ea4a9ce |
---|---|
402 raw_ns->set = &raw_ns_set; | 402 raw_ns->set = &raw_ns_set; |
403 if (mail_storage_create(raw_ns, "raw", 0, &errstr) < 0) | 403 if (mail_storage_create(raw_ns, "raw", 0, &errstr) < 0) |
404 i_fatal("Couldn't create internal raw storage: %s", errstr); | 404 i_fatal("Couldn't create internal raw storage: %s", errstr); |
405 if (path == NULL) { | 405 if (path == NULL) { |
406 input = create_raw_stream(&ctx, 0, &mtime); | 406 input = create_raw_stream(&ctx, 0, &mtime); |
407 i_stream_set_name(input, "stdin"); | |
407 box = mailbox_alloc(raw_ns->list, "Dovecot Delivery Mail", | 408 box = mailbox_alloc(raw_ns->list, "Dovecot Delivery Mail", |
408 MAILBOX_FLAG_NO_INDEX_FILES); | 409 MAILBOX_FLAG_NO_INDEX_FILES); |
409 if (mailbox_open_stream(box, input) < 0) { | 410 if (mailbox_open_stream(box, input) < 0) { |
410 i_fatal("Can't open delivery mail as raw: %s", | 411 i_fatal("Can't open delivery mail as raw: %s", |
411 mail_storage_get_last_error(box->storage, &error)); | 412 mail_storage_get_last_error(box->storage, &error)); |