Archived WikiMailDiscussion:


Simon Michael <simon@joyful.com>, Sat, 10 Nov 2001 08:43:07 -0800 (via mail):
ouch, lots of edit mail-outs when you're working on a page with emacs.
from mahler@cyc.com

Still I get no mail when changes occur

Also a digest-subscribe feature would address the problem simon mentioned above; I know I will want it once I actually get WikiMail working


Simon Michael <simon@joyful.com>, Tue, 13 Nov 2001 12:03:49 -0800 (via mail):

> * I have set up a zwikidotorg-0.96 in a project folder.
>
> * Installed a ZopeMailHost? in the zope root directory.
>
> * added "mail_from" attribute with value "project" and type "string"
>
> Still I get no mail when changes occur

Two ideas: have you also subscribed yourself to a page or the wiki ? And enter a real email address for mail_from, it may be that ZopeMailHost? is rejecting your "project". If you're doing mail-in as well, then use the mail-in address.

Does that help ?

Daniel Mahler <mahler@cyc.com>, Tue, 13 Nov 2001 14:19:19 -0600 (via mail):

Thanks

The problem was the value of mail_from. once I set it to my own email address ie "Project Wiki <mahler@cyc.com>" it worked fine. (I am running my zope server from my personal user acoount, since we do not officially use Zope or Wikis [ yet ;) ]?) Now a digest-subscribe feature would be real cool.

I am also interested in the mail-in feature, but i suspect I cannot do it if the zope server does not have it's own email address, and I am not a superuser. Is that correct? If not how would I get my mail going to me and the wiki mail going to the wiki?

thanks Daniel Mahler

  1. 184.139.140 writes: > > Simon Michael <simon@joyful.com>, Tue, 13 Nov 2001 12:03:49 -0800 (via mail): > > > I have set up a zwikidotorg-0.96 in a project folder. > > > > Installed a ZopeMailHost? in the zope root directory. > > > > * added "mail_from" attribute with value "project" and type "string" > > > > Still I get no mail when changes occur > > Two ideas: have you also subscribed yourself to a page or the wiki ? > And enter a real email address for mail_from, it may be that ZopeMailHost? > is rejecting your "project". If you're doing mail-in as well, then use > the mail-in address. > > Does that help ? > > > > --- > forwarded from http://zwiki.org/WikiMail >

Simon Michael <simon@joyful.com>, Tue, 13 Nov 2001 12:37:43 -0800 (via mail):
If your ISP allows you to run procmail in a shell account, you could have it divert the wiki mail to the wiki and leave everything else for you. If you can't set up a separate alias to match on, you could identify wiki mails with something like "me@my.address (wiki)" (see the example in zwiki_mailin.py).


Daniel Mahler <mahler@cyc.com>, 2001/12/04 16:11 US/Pacific (via mail):

Actually I am not using an ISP. I am running a Zope server in my own directory on a linux machine at work on which I do not have admin privileges. Is there a way to set up mailin without having to have sysadmin do some mailserver magic.

thanks Daniel


2001/12/06 13:46 US/Pacific (via web):
What specifically does one do to get mailin working? I added zwiki_mailin.py to my Extensions directory, I created an External Method referencing it in my zwiki folder, and set up procmail. When I test execution of it from the commandline, I get an "attributeerror" of type "comment". Did I miss something?

Test


Simon Michael <simon@joyful.com>, 2001/12/06 15:01 US/Pacific (via mail):
My guess: are you using the latest zwiki_mailin.py, which posts to /comment, but an older zwiki version, which does not include this new method ? comment() was added just recently as a sort of alias for append().


2001/12/07 17:37 US/Pacific (via web):
It would sure be convenient to include another checkbox, "Small change; do not notify", which when checked, does not notify page subscribers of the change. This way, you can keep modifying the page to your heart's content, and only notify upon the last edit. TWiki has this feature, and it looks real nice. Comments?

Samuel A. Falvo II


Although subscriptions work wonderfully here on zwiki.org, I have not been able to make them work elsewhere (in either direction). I created a ZopeMailHost? object, an external method mailin, a property in the wikifolder called mail_from with vernier@vc.bc.ca as a value. I have checked permissions. Things fail silently (except for testing mailin direclty gives a low level zope error). smtp works fine.(Bruno)


rossini@blindglobe.net (A.J. Rossini), 2001/12/09 21:07 US/Pacific (via mail):

>>>>> "z" == zwiki <zwiki@zwiki.org> writes:

z> ++added: Although subscriptions work wonderfully here on z> zwiki.org, I have not been able to make them work elsewhere (in z> either direction). I created a ZopeMailHost? object, an external z> method mailin, a property in the wikifolder called z> mail_from with vernier@vc.bc.ca as a value. I have checked z> permissions. Things fail silently (except for testing mailin z> direclty gives a low level zope error). smtp works fine.

z> --- forwarded from http://zwiki.org/WikiMail

I'm hardly one to be giving you advice, but are you sure that you've specified the external method correctly (i.e. the module).

And for mail-in, you are using some form of procmail (or similar splitter) to do redirects and post the mail using curl or similar?

best, -tony

-- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini@u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini@scharp.org -------------- http://software.biostat.washington.edu/ -------------- FHCRC: M-W: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: T-Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX Rosen: (Mullins' Lab) Fridays, and I'm unreachable except by email.


Bruno Vernier <vernier@vc.bc.ca>, 2001/12/09 23:17 US/Pacific (via mail):
Hi Tony: yes I have setup procmail and the special recipe, and curl. and this is far from being my first external method. I am quite excited by the many opportunities email/wiki gateways provide. (bruno) p.s. I have had success on one server with wikimail going out (not in yet though)


rossini@blindglobe.net (A.J. Rossini), 2001/12/10 08:09 US/Pacific (via mail):

>>>>> "z" == zwiki <zwiki@zwiki.org> writes:

z> ++added: Hi Tony: yes I have setup procmail and the special z> recipe, and curl. and this is far from being my first external z> method. I am quite excited by the many opportunities email/wiki z> gateways provide. (bruno)

I know
I'm familiar with your work up there :-) (and would love to get your LaTeX? <-> Wiki stuff in my own installation), sigh...

Did you check the curl recipe to see if you could add? the proper paths (and auth's) bit me initially.

Also, what version of Zope are you running (platform/OS version is less important, but...). My success was on 2.4.3 (Debian/Sid).

best, -tony


Daniel Mahler <mahler@cyc.com>, 2001/12/16 22:47 US/Pacific (via mail):

An alternative mail-in setup for people who:

Here it is:

  1. install zwiki_mailin.py as above
  2. in your .emacs or .vm:
     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     (defvar wiki-address-string "my-wiki")
    
     (defun get-header-field-contents  (header-name-regexp)
      (let ((regexp
             (concat "^" header-name-regexp ":\\(.*\\)$\\|\\(^$\\)")))
        (save-excursion
          (goto-char (point-min))
          (let ((case-fold-search t))
     (if (and (re-search-forward regexp nil t)
       (match-beginning 1))
         (match-string 1)
       nil )))))
    
     (defun send-to-wiki-p ()
      (let ((mail-header-separator ""))
        (or (string-match wiki-address-string (or (get-header-field-contents "to") ""))
     (string-match wiki-address-string (or (get-header-field-contents "cc") ""))
     (string-match wiki-address-string (or (get-header-field-contents "bcc") ""))
     )
        ))
    
     (defun send-to-wiki ()
      (if (send-to-wiki-p)
          (call-process-region (point-min) (point-max) "send2wiki")))
    
     (add-hook 'vm-arrived-message-hook #'send-to-wiki)
     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
  3. Reload you .emacs/.vm or restart your emacs anf vm.
  4. Now somewhere in your $PATH, create a script called send2wiki with:
     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     #!/bin/sh
     /usr/local/bin/curl -n -F 'msg=<-' http://your/zwiki/url/mailin
     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    

Now any mail sent to my-wiki <your@email> will get forwarded to your wiki. Needless to say, there is room for improvement in this, but it works for me :) :) :).

Go emacs! :)

P.S. Feel free to fix up the markup in these instructions

P.P.S Let's please find a way to batch subscribe notifications.How many edit notifications did I just generate???


comments:

ここからテスト -- Sat, 15 May 2004 04:53:25 -0700 reply
テストです。

ここからテスト -- Sat, 15 May 2004 04:54:13 -0700 reply
これもテスト