Project

General

Profile

Actions

Bug #3189

open

Allow DragonFly Mail Agent to accept an alternate config via command line switch

Added by iang over 2 years ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature request
Target version:
Start date:
06/05/2019
Due date:
% Done:

0%

Estimated time:

Description

If DMA could accept a path to a different config file when executed it would allow user the option of using different sending accounts.

This could be handy for situations where I want to send out via different smarthosts.

On line 578 of dma.c it shows the config path is hardcoded when compiled:
parse_conf(CONF_PATH "/dma.conf");

If this was changed to
parse_conf(CONF_PATH CONF_SUB_PATH "/dma.conf");

The CONF_SUB_PATH could be something like hotmail or gmail or livemail etc.. and the relevant config could be pulled out and used.

This may have an effect on spooled messages, perhaps they should be in CONF_SUB_PATH as well.

Would this cause too many other issues?

Actions #1

Updated by daftaupe 2 months ago

Hello,

a bit late, but DMA is developped in its own repository : https://github.com/corecode/dma

Maybe you should discuss the modification there as it's not DragonFly specific.

Actions

Also available in: Atom PDF