Commit graph

122 commits

Author SHA1 Message Date
Tom Hughes
baf10cd392 Fix rubocop lint issues 2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456 Cleanup trailing whitespace 2015-02-20 08:56:16 +00:00
Amir Wilf
103ba7977f Vagrant deploy works
Creating extension btree_gist for test DB 'osm_test'
2015-01-18 14:14:53 +02:00
Tom Hughes
7c75767c9b Restore original limits for user lists in statistics 2014-08-05 09:24:20 +01:00
Tom Hughes
204486e824 More modernisations for the statistics script 2014-07-25 16:49:40 +01:00
Tom Hughes
ace29736c7 Modernise statistics script to work with rails 4.1 2014-07-25 16:40:53 +01:00
Tom Hughes
3ea2fc48c2 Look for key pages using Template:Feature 2014-06-18 19:54:25 +01:00
Tom Hughes
ce404d1afb Fix update-wiki-pages to resolve redirects correctly 2014-06-18 19:47:30 +01:00
João G. Packer
8d0b4ca40a Change wiki preprocessing script to read redirect pages
The script that preprocess keys and tags metadata from the wiki
was filtering redirect pages when looking for wiki pages with the
template `KeyDescription`.

Some wiki pages like `Key:admin_level` currently redirects to others
like `Tag:boundary=administrative`, but even so, they still contain
a `KeyDescription` template so their metadata can be read by other
programs.

The parameter `eifilterredir` was changed and tested. For more
details, see this parameter in the feature `list=embeddedin` from
https://www.mediawiki.org/w/api.php.
2014-06-04 10:45:27 +01:00
Matt Amos
581d871827 Migrate the database on vagrant up.
Also fix the provisioning script so that it runs correctly when
the VM is upped, regardless of whether it's a clean install or
an 'up' of a previously halted VM.
2014-03-08 11:33:52 +00:00
Matt Amos
3c1371adaf Move vagrant provisioning script to a better location. 2014-02-26 11:35:43 +00:00
Tom Hughes
f735912374 Remove session cleanup code from cleanup script 2013-08-09 17:39:00 +01:00
Tom Hughes
72ce4bc922 Expire special m- and c- reply addresses after a month 2013-02-04 09:10:59 +00:00
Tom Hughes
c94e059d2d Use zip instead of SyncEnumerator in statistics script 2012-11-01 00:35:31 +00:00
Tom Hughes
b135fff9b0 Update spam block script for mass assignment protection changes 2012-04-16 08:44:38 +01:00
Tom Hughes
7be823bb11 Treat messages received by email as plain text
Move creation of a message from an email into the message model and
adjust the logic to treat messages received by email as plain text.
2012-03-17 16:37:00 +00:00
Tom Hughes
2ee961be9f Only mark a message as read after we have validated the email reply 2012-03-16 15:44:40 +00:00
Tom Hughes
300639dfa3 Mark a message as read when we receive an email reply to it 2012-03-16 15:17:50 +00:00
Tom Hughes
1340fca8f1 Turn on mass assignment protection
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
6ee672fe95 Remove one more netmask reference 2012-02-08 16:09:32 +00:00
Tom Hughes
5b2d2ff2f0 Block any address with more than one suspended user 2012-02-08 16:08:45 +00:00
Tom Hughes
f1316fa58e Update for removal of netmask from ACLs 2012-02-08 16:07:59 +00:00
Tom Hughes
b91072bed4 Handle character encodings in single part emails correctly 2012-02-03 22:40:35 +00:00
Tom Hughes
2b86f8cab2 Handle non-multipart email 2011-12-02 08:36:08 +00:00
Tom Hughes
d88ada0d11 Use either the HTML or the text part of an email, not both 2011-12-01 19:54:02 +00:00
Tom Hughes
2f4d12f990 Update message delivery script to work with rails 3 2011-11-16 15:42:43 +00:00
Tom Hughes
c9fa49c994 Update to rails 3 2011-11-14 09:42:40 +00:00
Tom Hughes
9ff70a861a Remove old process management scripts 2011-11-14 09:42:40 +00:00
Tom Hughes
3e8f20fbed Remove old process management scripts 2011-09-29 00:56:28 +01:00
Tom Hughes
122fab7066 Really get the subject extraction right this time 2010-07-07 21:24:21 +01:00
Tom Hughes
408461e5aa Extract the mail subject correctly 2010-06-30 13:34:20 +01:00
Tom Hughes
2038cd52c6 Include an [OpenStreetMap] prefix on the subject of message notifications
Put back the [OpenStreetMap] prefix to the subject line of email
notifications of messages, but strip it again from any incoming
email replies.
2010-06-29 09:43:30 +01:00
Tom Hughes
691f759da4 Update various files to match current rails versions 2010-05-13 10:54:16 +01:00
Tom Hughes
703c44eeab Add spam block ACLs with the right key 2010-05-11 08:59:04 +01:00
Ævar Arnfjörð Bjarmason
3a54a20af6 Implicitly update config/wiki_pages.yml if it exists, and chmod +x
This makes:

    script/misc/update-wiki-pages

from the top-level just work.
2010-05-08 18:09:49 +00:00
Tom Hughes
dd64ba2e7e Add script to update spam block ACLs
Maintain a set of ACLs which block account creation for an IP address
which has had more than two users suspended or removed in the last 28 days.
2010-05-08 17:49:27 +01:00
Tom Hughes
68bb9b3b81 Fix statistics script to reflect changes to user model 2010-05-07 11:09:54 +01:00
Ævar Arnfjörð Bjarmason
0191549033 This script requires perl 5.10 2010-04-21 00:17:05 +00:00
Ævar Arnfjörð Bjarmason
0193b18edb Mention how to run this script with prove(1) 2010-04-21 00:16:09 +00:00
Ævar Arnfjörð Bjarmason
c377932312 Don't re-declare lexical variable 2010-04-21 00:07:54 +00:00
Ævar Arnfjörð Bjarmason
0f9c9190ee This script no longer screen-scrapes and supports >500 key/values 2010-04-21 00:04:24 +00:00
Tom Hughes
546250f60b Load wiki link data at startup and shorten some file names 2010-04-20 21:05:22 +01:00
Tom Hughes
da74fbb769 Fix wiki scraper to find tag pages as well as key pages 2010-04-20 18:48:59 +01:00
Ævar Arnfjörð Bjarmason
8eead8a870 Ticket #2245: Link from /browse/* pages to the wiki key/value pages 2010-04-20 12:55:14 +00:00
Tom Hughes
be1ea6dd43 Use TMail to parse messages so that character set conversions are
done correctly. Fixes #2461.
2009-11-16 10:48:30 +00:00
Tom Hughes
a7368d7f8a Strip trailing whitespace from lines before joining them. 2009-11-10 09:13:39 +00:00
Tom Hughes
ca0c8d2f23 Add exit statement to shut rails up. 2009-11-09 08:39:33 +00:00
Tom Hughes
e6269e25f5 Add an exit statement to avoid noise from rails. 2009-11-06 08:40:37 +00:00
Tom Hughes
23b8672bc9 Add support for processing incoming mail messages in reply to message
notifications and diary comment notifications, turning the maill messages
into reply messages through the site messaging system.
2009-11-05 23:16:20 +00:00