Changeset 330:34700f68542a

Show
Ignore:
Timestamp:
08/22/11 17:01:59 (9 months ago)
Author:
Anselm Lingnau <anselm@…>
Branch:
default
Tags:
tip
Message:

Remove most of the @defaults values from DB; they are now mostly hard-coded.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lib/Lancelot/DB.pm

    r329 r330  
    282282my $dbversion = (sort { $a <=> $b } keys %schema)[-1]; 
    283283 
    284 my (@defaults) = ("lancelot.templatedirs = /etc/lancelot/templates", 
    285                   "list.addressdb = sqlite:", 
    286                   "list.language = en", 
    287                   # "list.address = test@example.com ", 
    288                   # "list.name = Test", 
    289                   # "list.owneraddress = alfred@example.com", 
    290                   # "list.ownername = Alfred E. Newman", 
    291                   "subscribe.confirm = 1", 
    292                   "subscribe.type = open", 
    293                   "subscribe.confirmdefault = 0", 
    294                   "subscribe.digestdefault = 0", 
    295                   "subscribe.nomaildefault = 0", 
    296                   "subscribe.moderateddefault = 0", 
    297                   "subscribe.welcome = 1", 
    298                   "unsubscribe.confirm = 0", 
    299                   "unsubscribe.confirmdefault = 0", 
    300                   "unsubscribe.goodbye = 1", 
    301                   "config.digest = 1", 
    302                   "config.nomail = 1", 
    303                   "config.name = 1", 
    304                   "mail.delimiter = +", 
    305                   "mail.listheaders = 1", 
    306                   "mail.subjecttag = ", 
    307                   "mail.replyto = ", 
    308                   "mail.forcereplyto = 0", 
    309                   "mail.workflow.submit = policy_addresses policy_mime list_headers archive_store post_message", 
    310                   "mail.workflow.subscribe = policy_subscribe ask_confirm(cmd=subscribe) subscribe_user", 
    311                   "mail.workflow.unsubscribe = ask_confirm(cmd=unsubscribe) unsubscribe_user", 
    312                   "mail.workflow.bounce = process_bounce forward", 
    313                   "mail.workflow.config = ask_confirm(cmd=config) do_config", 
    314                   "mail.workflow.owner = forward", 
    315                   "mail.workflow.help = send_help", 
    316                   "mail.policy.explicitaddress = 1", 
    317                   "mail.policy.subscribersonly = 1", 
    318                   "archive.directory = archive", 
    319                   "digests.enable = 0", 
    320                   "digests.maxperiod = 0", 
    321                   "digests.maxsize = 0", 
    322                   "mod.enable = 0", 
    323                   "mod.quorum.approve = 1", 
    324                   "mod.quorum.reject = 1", 
    325                   "mod.quorum.discard = 1", 
    326                   "smtp.server = localhost", 
    327                   "smtp.port = 25", 
    328                   "smtp.timeout = 120", 
    329                   "smtp.debug = 0", 
    330                   "smtp.maxrecipients = 100", 
    331                   "bounce.unknownaction = forward", 
    332                   "bounce.score.soft = 5", 
    333                   "bounce.score.hard = 10", 
    334                   "bounce.bucketcount = 7", 
    335                   "bounce.bucketsize = 86400", 
    336                   "bounce.threshold = 50"); 
     284# The command 
     285# 
     286#   pl-init test@example.com "Alfred E. Newman <alfred@example.com>" 
     287# 
     288# will establish the following default settings: 
     289 
     290my (@defaults) = ( 
     291    # "list.address = test@example.com ", 
     292    # "list.name = Test", 
     293    # "list.owneraddress = alfred@example.com", 
     294    # "list.ownername = Alfred E. Newman", 
     295    ); 
    337296 
    338297sub _find_listdir {