about
search
post article
Documentation
Mailing Lists
Bug Tracking
Development
Installation
Upgrading
Download
admin
rdf
main
parent
thread
|
Squishdot Now Mirrors via E-mail
by on Tuesday October 24, 11:45PM, 2000
|
I did some poking around of my own, and now Thibsdot will automatically forward all new posts and comments to a majordomo list. However, this did require some modifications of Squishdot.py. To avoid disrupting the "notify-of-responses" mechanism (the cancelNotify stuff has absolutely no relevance to the majordomo thread), I had to add a few methods:
- First, you must add this code to register admin_mail_html as an alternate mail template for the list. Then you can do evil things such as set the Subject, Date and From headers to the posting's subject, date and from values. Paste in this code:
self.defaultDocFile('admin_mail_html','Admin Notification Email', 'Squishdot_admin_mail_html')
- Then you must create a new method called sendAdminEmail() to use this new form:
sendAdminEmail__roles__=[]
def sendAdminEmail(self,msg,address,REQUEST):
if self.mail_host:
try:
mail =self.admin_mail_html(self, REQUEST, newItem=(msg,), email=address)
mhost=getattr(self,self.mail_host)
mhost.send(mail)
except:
pass
Because this is Python, you MUST preserve the indentation AND indent all of this code to the same level as the surrounding code.
- Finally, you must find all of the calls to sendEmail that send mail to admin_address (they look like "self.sendEmail(msg,self.admin_address,REQUEST)") and replace those with calls to sendAdminEmail. Note that ONE of the sendEmail calls is for the notify-poster-of-repsponses function, so do NOT change that call.
Having done that, simply turn on mail-all-articles-to-admin and mail-all-replies-to-admin, then set admin_address to your majordomo/listserv system. Majordomo takes care of routing the message to subscribers and ordinary people can subscribe to the list. (email "" with body "subscribe thibsdot" if you're interested.)
We'll see about posting stuff INTO thibsdot later.
|
|
Related Links
|
|
|
The Fine Print: The following comments are owned by whoever posted them.
( Reply )
|
Re: Squishdot Now Mirrors via E-mail
by on Tuesday October 24, 11:48PM, 2000
|
Ewww that was gross. Chris, you might consider unindenting and in future Squishdots (and right here on squishdot.org) to avoid those kinds of problems...sorry, that was a bug report, wasn't it?
|
[ Reply to this ]
|
-
Re: Squishdot Now Mirrors via E-mail
by on Tuesday October 31, 02:54PM, 2000
|
Don't really understand what the problem is...
Drop it in the Tracking System on SourceForge ;-)
cheers,
Chris
|
[ Reply to this ]
|
|
The Fine Print: The following comments are owned by whoever posted them.
( Reply )
|
|