Extension talk:EmailToWiki

syntax error in the most recent revision
Hi we tried to install the extension, and noticed there is probably a closing "}" needed after line 181 in the Rev 1187 php script: these two brackets at lines 181 and 182 seem mismatched.

Protected wiki - Registered users
Hi, on the todo list is the 'allow/verify registered MW users' item. Just voting out loud for this option ;-) Specifically when a MW site is only accessible to registered users, or is there another way of doing this?

Tip: I think it is possible to 'force' all inbound mailed-articles to a specific category by:
 * modifying the script by adding the 'sentbymail' directive
 * Adding 'sentbymail:' in front of the subject of the mail

Hfwang

swell aran, thanks! does this require responding to Special:Confirmemail in order to use?

--Wikiexpert 12:32, 14 June 2007 (UTC)

Emails not showing up in wiki
Email to wiki is awesome!

Although, I am having a bit of a tough time getting it to work.

the log file shows that EmailToWiki is getting into email, and is processing email, but none of the pages or updates are actually showing up on the wiki. (I do have SimpleForms installed, too).

My EamilToWiki conf looks like this: $popServer = "mail.xxxxx.com"; $popUser = 'wiki@xxxxx.com'; $popPassword = 'password'; $maxlines = "1000"; $deleteProcessed = "true"; $wikiTemplate = 'Email'; Any help is greatly appreciated! :) --SamRose 20:20, 24 September 2007 (UTC)
 * The first thing to check would be to see whether Simple Forms is able to create and edit articles, try creating the following form to test this,

Newly created article will be shown here... This should make a form into which you can type an article name and some content, when you hit submit it should create that article. --Nad 21:25, 24 September 2007 (UTC)


 * Well, I'm part of the way there...creates form, but not article: http://socialsynergyweb.com/semanticwiki/index.php?title=WikiEmail --SamRose 21:41, 24 September 2007 (UTC)


 * I should have specified a simpler test actually since that one requires Ajax/Mootools which isn't working, but EmailToWiki doesn't need Ajax. I tested a simple-forms create-article request on your wiki which worked successfully, so the wiki side of things is working.


 * I've just noticed that two important configuration settings are missing in the docs! I think I missed them out because I was going to get it to automatically retrieve them from the LocalSettings file but never got round to it - sorry :-/ - You need to set $wgServer and $wgScript in your configuration to the same values as those variables in your wiki. In your case the following,

Thanks so much, Nad. I added those variables, but still having the same issue. Do I need to have a page with a Template on it named in the cofig, too?--SamRose 22:43, 24 September 2007 (UTC)
 * No the config should be fine now - the next thing to try would be to see if you can update/create an article from the shell, try

wget http://socialsynergyweb.com/semanticwiki/index.php?title=test-article&content=test-content and then see if "test-article" has been created with "test-content" in it. --Nad 23:30, 24 September 2007 (UTC)

(PS. Thanks very, very much for help!) --SamRose 23:51, 24 September 2007 (UTC)
 * Hmmmm that wget doesn't work for me either actually... I made a small test script that replicates exactly what the EmailArticle.pl script does and ran it locally from my shell here and it's updated your wiki correctly, so it must be a problem with your server setup, try creating the following test script (from your servers shell), set its permissions to 755 and run it to see if it can update your wiki, I suspect that there may be some perl components missing or something.

You are right. I am missing Net::POP3 Perl module. Thanks again for your help. I'll move this to a server that allows me to install these modules... --SamRose 02:31, 25 September 2007 (UTC)
 * If you have shell access to your server you should be able to install any additional perl modules since their installations are written in perl too - try downloading from CPAN, unpack and run makefile. --Nad 04:59, 25 September 2007 (UTC)

wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/libnet-1.22.tar.gz gzip -dc libnet-1.22.tar.gz | tar -xof - cd libnet-1.22 perl Makefile.PL make install

I don't get the username equaling the article title.
How does the username in the email address equate to the title? Does the script have to have access to any and all possible usernames email accounts?

It seems like a great idea, I guess I am just confused as to how it works with the email server.

Thanks, Pete. --205.172.241.12 16:14, 5 October 2007 (UTC)
 * This extension is for sending content to the wiki using email instead of browser, so the wiki must have its own email domain so that email can be addressed to a specific article. This is not related to wiki users or their email addresses, for sending wiki articles to users, use Extension:EmailArticle --Nad 21:10, 5 October 2007 (UTC)

Email processed but not showing up in wiki
I would love to get this extension running but I can't seem to get the email to show up in my test wiki.

I checked to make sure that I have Net:POP3 installed using (perl -MNet::POP3 -e 'print "Installed", "\n"'). I also tried to run your test .pl script and nothing happened. No errors or article creation.

My log file shows: Tue Oct 23 03:07:59 2007 : There are 1 messages on xxxx.com@xxxx.com Tue Oct 23 03:07:59 2007 : Processing email from xxxx@hotmail.com to somepage@captainwiki.com, subject: Tue Oct 23 03:07:59 2007 : "somepage" updated Tue Oct 23 03:07:59 2007 :  message marked for deletion Tue Oct 23 03:07:59 2007 : POP3 connection to xxxx.com closed and marked items deleted.

It looks to me like SimpleForms isn't processing the file correct. So I created the simple form you suggested above in the Sandbox and it creates an article without any problem.

I'm not sure where else to look. Any idea of what this problem could be? Thanks in advance! --Valkyrie 19:53, 23 October 2007 (UTC)
 * Try the modified version of the test perl script above which now prints the response content. It may help to see what's coming back from the server. --Nad 07:38, 24 October 2007 (UTC)

E-Mail Configuration?
I think I understand the basic requirement for the e-mail setup (any email to *@mywiki.colgate.edu must be routed to a single email address). This used to be done using rewrite rules in sendmail.cnf Is this still the case? Does anyone have a sample configuration to offer? Is this Linux Sys Admin Guide reference - http://www.faqs.org/docs/linux_network/x15291.html - a decent reference?

Wheelerda 14:46, 20 November 2007 (UTC)

Only works with anonymous edit permissions?
Hi. Am I right in thinking that this extension will only work if anonymous user edits are allowed? I have a site where only logged in users can create and edit article and I think this is stopping emailed articles from being inserted. mitchelln 15:49, 22 February 2010 (UTC)