![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
Hi,
What are the files in the shunt dir? When i do bin/unshunt then there is somthing happen, it sends a mail out and the shunt dir is growing.
Danny Terweij MM21b2
![](https://secure.gravatar.com/avatar/a930430c7f9705b71a65f341c4191a2b.jpg?s=120&d=mm&r=g)
"DT" == Danny Terweij <danny@terweij.nl> writes:
DT> What are the files in the shunt dir? When i do bin/unshunt
DT> then there is somthing happen, it sends a mail out and the
DT> shunt dir is growing.
You need to tail your logs/error file. Messages get sent to shunt when there's a bug in Mailman so there should be a traceback in the error log.
The idea is that you <wink> fix the bug, then run bin/unshunt to complete delivery of those messages. It doesn't do any good to unshunt a message while the bug still exists.
-Barry
![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
From: "Barry A. Warsaw" <barry@zope.com>
You need to tail your logs/error file. Messages get sent to shunt when there's a bug in Mailman so there should be a traceback in the error log.
The idea is that you <wink> fix the bug, then run bin/unshunt to complete delivery of those messages. It doesn't do any good to unshunt a message while the bug still exists.
Hmm, I did the following: Translation of /nl/mailman.po Not all translations are translated, i did want to see the already created translations.. I ran msgfmt and copy messages.mo to mailman.mo Created the new language at Defaults.py (bottom). At the mailing list admin links (Test list), set default language to Dutch, and set the users language to Dutch.
Then when sending a message to the list it is not processed. it sits then in the shunt dir.
Lets take a look at the error file:
Jun 29 16:43:30 2002 (17486) Uncaught runner exception: nl Jun 29 16:43:30 2002 (17486) Traceback (most recent call last): File "/usr/local/mailman/Mailman/Queue/Runner.py", line 105, in __oneloop self.__onefile(msg, msgdata) File "/usr/local/mailman/Mailman/Queue/Runner.py", line 154, in __onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 183, in _dispose msg = res.make_response() File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 143, in make_response _charset=Utils.GetCharSet(self.mlist.preferred_language)) File "/usr/local/mailman/Mailman/Utils.py", line 649, in GetCharSet return mm_cfg.LC_DESCRIPTIONS[lang][1] KeyError: nl
![](https://secure.gravatar.com/avatar/a930430c7f9705b71a65f341c4191a2b.jpg?s=120&d=mm&r=g)
Did you "bin/mailmanctl restart"? You always need to do that after hacking mm_cfg.py (or Defaults.py, which you should avoid ;).
-Barry
![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
From: "Barry A. Warsaw" <barry@zope.com>
Did you "bin/mailmanctl restart"? You always need to do that after hacking mm_cfg.py (or Defaults.py, which you should avoid ;).
I did not :-) But i did 15 mins ago a mailmanctl stop :) It was running for 44 days.
Can i copy the whole Defaults.py to mm_cfg.py? en then edit my modifications in there? I am waiting before i start the qrunner again :)
Danny.
![](https://secure.gravatar.com/avatar/a930430c7f9705b71a65f341c4191a2b.jpg?s=120&d=mm&r=g)
"DT" == Danny Terweij <danny@terweij.nl> writes:
>> Did you "bin/mailmanctl restart"? You always need to do that
>> after hacking mm_cfg.py (or Defaults.py, which you should avoid
>> ;).
DT> I did not :-) But i did 15 mins ago a mailmanctl stop :) It
DT> was running for 44 days.
That's a good sigh. :)
DT> Can i copy the whole Defaults.py to mm_cfg.py? en then edit my
DT> modifications in there? I am waiting before i start the
DT> qrunner again :)
No need. Just put in mm_cfg.py customizations that override Defaults.py. The MM installation process will overwrite Defaults.py but never mm_cfg.py.
Your add_language() change is questionable though, because that /is/ something that's been added to Defaults.py{.in} already (in cvs).
-Barry
![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
From: "Barry A. Warsaw" <barry@zope.com>
DT> Can i copy the whole Defaults.py to mm_cfg.py? en then edit my DT> modifications in there? I am waiting before i start the DT> qrunner again :)
No need. Just put in mm_cfg.py customizations that override Defaults.py. The MM installation process will overwrite Defaults.py but never mm_cfg.py.
I am aware of it, but do not remember witch settings are default. Thats why i asked for copy the whole Defaults.py to mm_cfg.py :)
Also thats why i am afraid of if i install the mailman-cvs to the current installation for overwriting the Defaults.py. If i knew better and before, then i added all the modifications to mm-cfg.py :) So i did the last changes to this file.
Your add_language() change is questionable though, because that /is/ something that's been added to Defaults.py{.in} already (in cvs).
I did now added the add_language() to the mm_cfg.py for nl (dutch).
I am ready to start mailman :) lets see for error to the error file, if any :)
Danny.
![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
From: "Danny Terweij" <danny@terweij.nl>
I am ready to start mailman :) lets see for error to the error file, if any :)
[root@lnx bin]# ./mailmanctl start Traceback (most recent call last): File "./mailmanctl", line 101, in ? from Mailman import mm_cfg File "/usr/local/mailman/Mailman/mm_cfg.py", line 69, in ? add_language('nl', _('Nederlands'), 'us-ascii') NameError: name '_' is not defined [root@lnx bin]#
I am going to remove the add_language line from mm_cfg.py and add it again to Defaults.py.
Lets see what then is happen..
Danny.
![](https://secure.gravatar.com/avatar/e082e56b2302fb345675cc4a339d8bb5.jpg?s=120&d=mm&r=g)
From: "Danny Terweij" <danny@terweij.nl>
I am ready to start mailman :) lets see for error to the error file, if any :)
[root@lnx bin]# ./mailmanctl start Traceback (most recent call last): File "./mailmanctl", line 101, in ? from Mailman import mm_cfg File "/usr/local/mailman/Mailman/mm_cfg.py", line 69, in ? add_language('nl', _('Nederlands'), 'us-ascii') NameError: name '_' is not defined [root@lnx bin]#
I am going to remove the add_language line from mm_cfg.py and add it again to Defaults.py.
Lets see what then is happen..
Now the master qrunner is running.
Lets post a message to the list... And it works.
Lets do some unshunting... shunt directory is empty now.
Lets check the already made translations... This is working.
Wow, this is gonna be cool, i now know how to handle it. But the add_language to the mm_cfg.py does not work.
Danny.
![](https://secure.gravatar.com/avatar/a930430c7f9705b71a65f341c4191a2b.jpg?s=120&d=mm&r=g)
Cool. BTW, I just checked out some (simple) Dutch templates. Looks good to me.
-Barry
participants (2)
-
barry@zope.com
-
Danny Terweij