Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main
 parent


Re: Mail Notification
by on Tuesday October 24, 04:45PM, 2000
Well, I poked around some more (responding again to my own post). . .

First of all, you can simply set admin_address in Properties to include a string of addresses, rather than one address. Using MS Exchange Server, that means delimiting the recipient addresses with semicolons. Using POP3, it probably means using commas.

Secondly, in the code (Squishdot.py), there are sendEmail instructions. You can just add additional ones with hard coded addresses. I tried it and it worked. But you can accomplish the same thing much more cleanly by setting Properties as above.

Now, RECEIVING an email and automatically making a post out of it would be tougher. . .
Related Links

The Fine Print: The following comments are owned by whoever posted them.
( Reply )

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:

  1. 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')

  2. 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.
  3. 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.
[ Reply to this ]
  • 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 )

Powered by Zope  Squishdot Powered
  "Any system that depends on reliability is unreliable." -- Nogg's Postulate
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 , ©2000-2002 .