On 6/9/20 11:57 AM, Mark Dadgar wrote:
On Jun 9, 2020, at 11:34 AM, Mark Sapiro <mark@msapiro.net> wrote:
./mm3-admin: line 6: 702058 Killed django-admin $@
Now what?
Run it as user
list
.Same.
It appears that the reference to line 6 is line 6 of your mm3-admin file
which is the django-admin $@
command. So that command is being killed
by the OS for some reason, probably out of memory.
Try this instead.
import pytz import datetime start = datetime.datetime(2020, 1, 1).replace(tzinfo=pytz.UTC) end = datetime.datetime(2020, 2, 1).replace(tzinfo=pytz.UTC) # These are examples. The args are year, month, day. # Pick dates for start and end that overlap the start of this issue. from hyperkitty.models import Email emails = Email.objects.filter(date__range=(start,end)) for email in emails: if email.content.find('\u200b'*5) >= 0: print('Found in ml {}, hash {}'.format( email.mailinglist.name, email.message_id_hash))
This will make a much smaller query set than all the emails and should work.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan