Merge lp:~jose/uwn/fix-ml2fridge into lp:uwn

Proposed by José Antonio Rey
Status: Merged
Merged at revision: 24
Proposed branch: lp:~jose/uwn/fix-ml2fridge
Merge into: lp:uwn
Diff against target: 34 lines (+11/-7)
1 file modified
fridge/ml2fridge.pl (+11/-7)
To merge this branch: bzr merge lp:~jose/uwn/fix-ml2fridge
Reviewer Review Type Date Requested Status
Elizabeth K. Joseph Pending
Review via email: mp+181460@code.launchpad.net

Description of the change

Fixed fridge/ml2fridge.pl with the same concept as publish-uwn-fridge.pl.

I used the same concept. It will throw a text file with the format "mailing-list, author date" on the fridge folder.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'fridge/ml2fridge.pl'
--- fridge/ml2fridge.pl 2013-07-07 20:05:44 +0000
+++ fridge/ml2fridge.pl 2013-08-22 05:32:18 +0000
@@ -15,11 +15,11 @@
15$ua->env_proxy;15$ua->env_proxy;
16$ua->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100225 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre');16$ua->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100225 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre');
1717
18my $o = WordPress::XMLRPC->new({18## my $o = WordPress::XMLRPC->new({
19 username => 'pleia2',19## username => 'FRIDGE USERNAME GOES HERE',
20 password => 'Leia26Leia26',20## password => 'FRIDGE PASSWORD GOES HERE',
21 proxy => 'http://fridge.ubuntu.com/xmlrpc.php',21## proxy => 'http://fridge.ubuntu.com/xmlrpc.php',
22});22## });
23 23
24$WordPress::XMLRPC::DEBUG = 1;24$WordPress::XMLRPC::DEBUG = 1;
2525
@@ -63,7 +63,11 @@
63 $post_hashref->{title} = "$title";63 $post_hashref->{title} = "$title";
64 $post_hashref->{description} = "$post\n\n$cite";64 $post_hashref->{description} = "$post\n\n$cite";
65# $post_hashref->{categories} = ['Interviews'];65# $post_hashref->{categories} = ['Interviews'];
66 my $id = $o->newPost($post_hashref, 0);66## my $id = $o->newPost($post_hashref, 0);
6767
68 print 'http://fridge.ubuntu.com/wp-admin/post.php?post='.$id.'&action=edit'."\n";68## print 'http://fridge.ubuntu.com/wp-admin/post.php?post='.$id.'&action=edit'."\n";
69 open my $stdout, ">", "$list, $author $date" or die
70 print "$post\n\n$cite";
71 print $stdout "$post\n\n$cite";
72 close $stdout;
69}73}

Subscribers

People subscribed via source and target branches