russdev Posted March 15, 2008 Posted March 15, 2008 Right trying to get this to work http://www.organicdesign.co.nz/Extension:EmailToWiki.pl But think line content => "[[:Template:$wikiTemplate]]" is wrong as I get wiki article created but the content is "[[:Template:Email]" Which is just a link to the template. I think need to add to bit where it says: - logAdd "Processing email from $from to $to, subject: $subject"; $del = $deleteProcessed; $time = localtime(); ($title) = split /@/,$to; $title =~ s/\&([a-f0-9]{2})/pack('C',hex($1))/gise; ($subject) = grep /^subject:/i,@$text; $subject =~ s/^.+?:\s*(.*?)(\r?\n)*/$1/ So anyideas people.
contink Posted March 16, 2008 Posted March 16, 2008 Think I've got it... # Post the data using Extension:SimpleForms to prepend/append/replace/create content If you don't have the SimpleForms extension installed that may explain why it's not working properly.
russdev Posted March 16, 2008 Author Posted March 16, 2008 No got that installed and working. Russell
contink Posted March 16, 2008 Posted March 16, 2008 Ok... only other thing I can think of is that the template is missing.
el8linuxel8 Posted March 17, 2008 Posted March 17, 2008 the script doesnt actually define $wikiTemplate at all, if they used lexical variables the script would fail to execute. [[:Template:$wikiTemplate]] looks as though its some kind of bbs code to me, never played with mediawiki though. install wireshark and sniff the post requests sent to your wiki from the script and post here.
russdev Posted March 17, 2008 Author Posted March 17, 2008 Yes problem as I can see it define template but codes pass no variables to the template or am I being daft? Russ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now