################################################################################
use strict;
-use vars qw(%error @EXPORT);
+use vars qw(
+ %error
+ @EXPORT
+ $VERSION
+);
use Encode::Plain; $Encode::Plain::utf8 = 1;
use Encode::Posting;
noParent => '4 could not find parent message'
);
+################################################################################
+#
+# Version check
+#
+$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+
################################################################################
#
# Export
body => encoded_body(
\($param -> {body}),
{ quoteChars => $param -> {quoteChars},
- messages => $param -> {messages}
+ messages => $param -> {messages},
+ base_uri => $param -> {base_uri}
}
),
time => $param -> {time},
save_file ($param -> {forumFile}, $forum) or return $error{forumWrite};
release_file ($param -> {messagePath}.$tid.'.xml');
- return (0, $thread, $mid);
+ return (0, $thread, $mid, $tid);
}
### sub write_reply_posting ($) ################################################
${encoded_body(
\($param -> {body}),
{ quoteChars => $param -> {quoteChars},
- messages => $param -> {messages}
+ messages => $param -> {messages},
+ base_uri => $param -> {base_uri}
}
)}
)
$param -> {parsedThreads},
{ dtd => $param -> {dtd},
lastMessage => $mid,
- lastThread => $tid
+ lastThread => 't'.$param -> {lastThread}
}
);
save_file ($param -> {forumFile}, $forum) or return $error{forumWrite};
}
- return (0, $thread, $mid);
+ return (0, $thread, $mid, $tid);
}
-# keeping 'require' happy
+# keep 'require' happy
#
1;