Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...