Extension talk:EmailToWiki

How can i add to an existing Article ?
nice extension and it works. But how can i add the email to an existing article ? The extension creates allways a new one Thank you Regards Dieter

Dear Dieter, extension too works fine for me, but I couldnt figure out either how mails can be added to an existing article, did you find anyting yet ? I believe this function has not yet been propper implemented. Searching the web left me blind, but I made up a simple workaround - I defined a TEMPLATE to use with the Import - you can set it in EmailtoWiki.conf - and then have the article added to the same category. After that you can construct a page that shows all the content of this special category. Hope this helps!? Regards, Chris --46.189.27.118 10:32, 3 December 2013 (UTC)

Hey there ! Found some more Information, but since I do not understand mediawikis script language nor do I speak perl I don't know where to put the code and how to configure it. Any hints ? http://www.mediawiki.org/wiki/User_talk:Nad#Can_you_help_me_some_more.3F Yours, Chris --46.189.27.118 10:32, 3 December 2013 (UTC)

Hi! some news for editing existing articles? What needs to change? Thanks Serena

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)

Unable to download
Sorry but I was unable to download the extension from the given location. What is the preferred way getting the code? --Pintman (talk) 20:15, 21 April 2013 (UTC)

Emails didn't appear in wiki
We inslalled extention EmailToWiki. We are beginners. We followed instruction on extention page. But emails didn't appear in wiki.

Сontents of EmailToWiki.conf file are next: $::wiki = "https://192.***.2.7/";
 * 1) Name of the wiki which the emails will populate (must be running on the same host)

$::template = "Email";
 * 1) The wiki template to wrap the email paramaters in

$::emailonly = 1;
 * 1) Extract just the email address portion of the FROM and TO fields

$::fromfilter = 0;
 * 1) Don't import emails into the wiki if the From address isn't registered in the wiki

$::html_only = 0;
 * 1) If there's HTML formatting in the email don't also add sections for non-HTML versions of the content

$::type = "IMAP"; $::host = "192.***.2.210"; $::user = "mediawiki@navi*****.com"; $::pass = "mwnavis2013";
 * 1) Details of the POP or IMAP server to check for messages

$::remove = 0;
 * 1) Delete messages after processing them

$::limit = 20000000;
 * 1) Maximum amount of message to download

$::format = "Email:\$id (\$subject)";
 * 1) Format of the title for the corresponding article in the wiki

$::owner = "www-data";
 * 1) The user the webserver runs as

1;

We created template Template:Email which contains:

Could anyboby help us?

Error in EmailToWiki.pl
Hi, I am recieving the error No such file or directory at EmailToWiki.pl line 45. when executing the perl script. --Krabina (talk) 14:27, 19 September 2014 (UTC)

Internal Server Error - Plugin seems not to work with Wiki 1.25.1
We tried to implement this Plugin with following code:

LocalSettings: require_once("$IP/extensions/EmailToWiki/EmailToWiki.php"); or include( "$IP/extensions/EmailToWiki/EmailToWiki.php" );

The IIS shows only Error 500 - internal Server Error. Is this plugin not compatible with the latest MediaWiki Version?

greetings Manuel