Can't force explicit reply to

I'm trying to follow the examples here and here.
http://mailman.readthedocs.org/en/release-3.0/src/mailman/handlers/docs/repl... http://www.pythonhosted.org/mailman/src/mailman/handlers/docs/reply-to.html?...
I can't start because it won't recognize my commands. I've tried the mailman shell (mailman 3 from mailman-bundler) and normal python.
When trying to do:

On 03/15/2016 01:52 PM, treal tv wrote:
I'm trying to follow the examples here and here.
http://mailman.readthedocs.org/en/release-3.0/src/mailman/handlers/docs/repl...
http://www.pythonhosted.org/mailman/src/mailman/handlers/docs/reply-to.html?...
In Mailman shell, you need first to do
from zope.component import getUtility from mailman.interfaces.listmanager import IListManager list_manager = getUtility(IListManager) from mailman.interfaces.mailinglist import ReplyToMunging mlist = list_manager.get('list@example.com')
Or if you've invoked mailman shell with the list address, you only need do
from mailman.interfaces.mailinglist import ReplyToMunging
and either
mlist = m
or use m instead of mlist in the following:
Then you can do
mlist.reply_goes_to_list = ReplyToMunging.explicit_header
...
and finally you have to do
config.db.commit()
or you can do
from mailman.database.transaction import transaction
with transaction(): make_some_changes()
and when you exit the with block, it will commit.
I'm not sure exactly how anonymous lists work in MM 3. Are you saying it actually changes the explicit reply-to shown in Postorius or that it just overrides it and puts the list address in reply-to.
If the latter, setting it in 'mailman shell' probably won't help.
Caveat: I'm not totally up to speed w/ MM3 yet. I'm struggling with Postorius et al right now trying to get a Mailman 3 users list set up, so I probably don't know a lot either.
In theory, you should be able to do all list management with Postorius, but there are probably gaps. These can be reported to the issue tracker at <https://gitlab.com/mailman/postorius/issues>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 03/15/2016 01:52 PM, treal tv wrote:
I'm trying to follow the examples here and here.
http://mailman.readthedocs.org/en/release-3.0/src/mailman/handlers/docs/repl...
http://www.pythonhosted.org/mailman/src/mailman/handlers/docs/reply-to.html?...
In Mailman shell, you need first to do
from zope.component import getUtility from mailman.interfaces.listmanager import IListManager list_manager = getUtility(IListManager) from mailman.interfaces.mailinglist import ReplyToMunging mlist = list_manager.get('list@example.com')
Or if you've invoked mailman shell with the list address, you only need do
from mailman.interfaces.mailinglist import ReplyToMunging
and either
mlist = m
or use m instead of mlist in the following:
Then you can do
mlist.reply_goes_to_list = ReplyToMunging.explicit_header
...
and finally you have to do
config.db.commit()
or you can do
from mailman.database.transaction import transaction
with transaction(): make_some_changes()
and when you exit the with block, it will commit.
I'm not sure exactly how anonymous lists work in MM 3. Are you saying it actually changes the explicit reply-to shown in Postorius or that it just overrides it and puts the list address in reply-to.
If the latter, setting it in 'mailman shell' probably won't help.
Caveat: I'm not totally up to speed w/ MM3 yet. I'm struggling with Postorius et al right now trying to get a Mailman 3 users list set up, so I probably don't know a lot either.
In theory, you should be able to do all list management with Postorius, but there are probably gaps. These can be reported to the issue tracker at <https://gitlab.com/mailman/postorius/issues>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
treal tv