more config file things
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
data/
|
data/
|
||||||
generator.conf
|
|
||||||
presentation.pdf
|
presentation.pdf
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
redeleitung:
|
redeleitung:
|
||||||
name: ./data/redeleitung
|
name: "@file(data/redeleitung)"
|
||||||
email: rede.leitung@fsmi.uni-karlsruhe.de
|
email: "@import(personal.conf:email_redeleitung)"
|
||||||
|
|
||||||
protokoll:
|
protokoll:
|
||||||
name: ./data/protokoll
|
name: "@file(data/protokoll)"
|
||||||
|
|
||||||
|
default_weekday: 2 #Mittwoch
|
||||||
|
default_time: "18:00"
|
||||||
|
meeting_link: https://meet.vs.kit.edu/b/len-prm-rv4
|
||||||
|
place: "@file(data/ort)"
|
||||||
|
mm_url: "@import(personal.conf:mattermost_url)"
|
||||||
|
|
||||||
|
invite_mail: fsr-einladung@fsmi.uni-karlsruhe.de
|
||||||
|
invite_subject: 'Einladung zum Fachschaftsrat am {{date|weekday}}, dem {{date|date}}'
|
||||||
|
|
||||||
pre_tops:
|
pre_tops:
|
||||||
- title: Begrüßung
|
- title: Begrüßung
|
||||||
@@ -62,6 +71,12 @@ presentation_template_file: templates/fsr_presentation.tex.j2
|
|||||||
protocol_template_file: templates/fsr_protokoll.j2
|
protocol_template_file: templates/fsr_protokoll.j2
|
||||||
|
|
||||||
top_mbox_file: data/fsr_tops.mbox
|
top_mbox_file: data/fsr_tops.mbox
|
||||||
|
mbox_out: data/invitemail.mbox
|
||||||
|
top_inbox_maildir: "@import(personal.conf:top_inbox_maildir)"
|
||||||
|
ubmails_inbox_maildir: "@import(personal.conf:ubmails_inbox_maildir)"
|
||||||
|
|
||||||
|
last_date_file: data/last_date
|
||||||
|
|
||||||
protoreplace:
|
protoreplace:
|
||||||
Beschlussvorlage: "{{Beschluss |text=
|
Beschlussvorlage: "{{Beschluss |text=
|
||||||
|
|
||||||
@@ -69,18 +84,7 @@ protoreplace:
|
|||||||
|
|
||||||
Beschlussvorlage"
|
Beschlussvorlage"
|
||||||
|
|
||||||
|
|
||||||
mbox_out: data/invitemail.mbox
|
|
||||||
|
|
||||||
default_weekday: 2 #Mittwoch
|
|
||||||
default_time: "17:30"
|
|
||||||
meeting_link: https://meet.vs.kit.edu/b/abc-def-ghi
|
|
||||||
place: ./data/ort
|
|
||||||
|
|
||||||
invite_mail: fsr-einladung@fsmi.uni-karlsruhe.de
|
|
||||||
invite_subject: 'Einladung zum Fachschaftsrat am {{date|weekday}}, dem {{date|date}}'
|
|
||||||
sendmail: ["/usr/sbin/sendmail"]
|
sendmail: ["/usr/sbin/sendmail"]
|
||||||
|
|
||||||
mm_url: https://mattermost.fsmi.uni-karlsruhe.de/hooks/whatever
|
|
||||||
|
|
||||||
# vim: filetype=yaml
|
# vim: filetype=yaml
|
||||||
@@ -25,9 +25,9 @@ def decode_header(header):
|
|||||||
return decoded_header[0].decode(encoding, errors="replace") if isinstance(decoded_header[0], bytes) else decoded_header[0]
|
return decoded_header[0].decode(encoding, errors="replace") if isinstance(decoded_header[0], bytes) else decoded_header[0]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser()
|
aparser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--config", "-c", default=CONFIG_FILE)
|
aparser.add_argument("--config", "-c", default=CONFIG_FILE)
|
||||||
args = parser.parse_args()
|
args = aparser.parse_args()
|
||||||
|
|
||||||
config = generate.get_config(args.config)
|
config = generate.get_config(args.config)
|
||||||
in_mbox = mailbox.Maildir(config["top_inbox_maildir"])
|
in_mbox = mailbox.Maildir(config["top_inbox_maildir"])
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ def decode_header(header):
|
|||||||
return decoded_header[0].decode(encoding, errors="replace") if isinstance(decoded_header[0], bytes) else decoded_header[0]
|
return decoded_header[0].decode(encoding, errors="replace") if isinstance(decoded_header[0], bytes) else decoded_header[0]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser()
|
aparser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--config", "-c", default=CONFIG_FILE)
|
aparser.add_argument("--config", "-c", default=CONFIG_FILE)
|
||||||
args = parser.parse_args()
|
args = aparser.parse_args()
|
||||||
|
|
||||||
config = generate.get_config(args.config)
|
config = generate.get_config(args.config)
|
||||||
mbox = mailbox.Maildir(config["ubmails_inbox_maildir"])
|
mbox = mailbox.Maildir(config["ubmails_inbox_maildir"])
|
||||||
|
|||||||
Reference in New Issue
Block a user