~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lmtp/lmtp-settings.c

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2009-2012 Dovecot authors, see the included COPYING file */
 
1
/* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */
2
2
 
3
3
#include "lib.h"
4
4
#include "buffer.h"
60
60
        DEF(SET_BOOL, lmtp_proxy),
61
61
        DEF(SET_BOOL, lmtp_save_to_detail_mailbox),
62
62
        DEF(SET_BOOL, lmtp_rcpt_check_quota),
 
63
        DEF(SET_STR, lmtp_address_translate),
63
64
        DEF(SET_STR_VARS, login_greeting),
64
 
        DEF(SET_STR, lmtp_address_translate),
 
65
        DEF(SET_STR, login_trusted_networks),
65
66
 
66
67
        SETTING_DEFINE_LIST_END
67
68
};
70
71
        .lmtp_proxy = FALSE,
71
72
        .lmtp_save_to_detail_mailbox = FALSE,
72
73
        .lmtp_rcpt_check_quota = FALSE,
 
74
        .lmtp_address_translate = "",
73
75
        .login_greeting = PACKAGE_NAME" ready.",
74
 
        .lmtp_address_translate = ""
 
76
        .login_trusted_networks = ""
75
77
};
76
78
 
77
79
static const struct setting_parser_info *lmtp_setting_dependencies[] = {
99
101
{
100
102
        void **sets;
101
103
 
102
 
        sets = settings_parser_get_list(set_parser) + 1;
 
104
        sets = master_service_settings_parser_get_others(master_service,
 
105
                                                         set_parser);
103
106
        *lda_set_r = settings_dup(&lda_setting_parser_info, sets[1], pool);
104
107
        *lmtp_set_r = settings_dup(&lmtp_setting_parser_info, sets[2], pool);
105
108
}