-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
93 lines (79 loc) · 2.94 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#####################
# Important settings!
#####################
# Set these right to prevent loosing data!
# File to write error log to
# No expansion of '~' supported here!
# Be sure the directory of the given file / the file is writable!
# Value: FILE
errorlog = 'error.log'
import logging
# Logging level used for logging only to stderr
# Set to logging.DEBUG to see URLs of REST requests.
# Values: logging.DEBUG|logging.INFO|logging.ERROR
loglevel = logging.INFO
# Logging level for error logger, logging to stderr and config.errorlog
# Values: logging.WARNING|logging.ERROR|logging.CRITICAL
errorloglevel = logging.WARNING
# Where mail_upload puts mails that couldn't be uploaded to CouchDB.
# They will have a 21 chars file name:
# 10 chars beginning of hash, underscore, 10 chars hex randomness.
# Be sure this directory exists and is writable!
# '~' expansion allowed
# Value: DIRPATH
backupdir = '~/mail_backup/'
# URL to your mail database
# SSL is supported, but certificates are not verified.
# Don't forget a trailing slash.
# Value: URL
couchdb_url = 'http://localhost:5984/mailtest/'
# The the document id of your design document with the views for searching.
# Don't forget a trailing slash.
# Value: DocID
design_doc = '_design/post/'
### Optional
# If you want to disable one of the following features, do not comment the
# variables out, but set them to None.
# Authentication data to be sent to couchdb.
# Sent in clear text! Use SSL! or do it only on trusted connections.
# Values: (USERNAME, PASSWORD)|None
couchdb_auth = None
# example:
# couchdb_auth = ('username', '1234')
# Path to file with rules for autolabelling.
# Check its sanity! (see README section Labelling)
# Values: File|None
autolabels = 'autolabels'
# Default path to muttrc
# Values: FILE|None
muttrc = None
# Default path to temporary mailbox
# Values: FILE|None
temp_mailbox = 'tmpbox'
# Default path to mailbox with sent mail from mutt in mbox format.
# Values: FILE|None
sent_mailbox = None
## Changes, viewed by changed.py
# {docid} will be replaced by the document id
# Shell command executed on new mail only
new_mail_cmd = None
# Shell command executed when mail existing mail changed
# Since we upload an attachment to the document, this command is
# executed directly after new_mail_cmd too (unless some error occurs)!
changed_mail_cmd = None
# Shell command executed when mail was deleted
deleted_mail_cmd = None
## Replication
# only for one shot replication.
# You have to setup continuous replication yourself.
# Try example.com:5984/_utils/replicator.html
# replicatOR not replicatE
# used for continuous replication
replicator_url = 'http://localhost:5984/_replicator'
# replicatE not replicatOR
# used for one shot replication
replicate_url = 'http://localhost:5984/_replicate'
# URL of remote CouchDB. Include BasicAuth here.
# Send in plaintext, use encrypted connection!
#remotedb_url = 'http://username:password@10.9.8.1:5984/mail/'
remotedb_url = 'http://example.com:5984/mail/'