]> xenbits.xensource.com Git - people/aperard/emesinae.git/log
people/aperard/emesinae.git
11 years agoCGI: Move common.pl to a proper module Emesinae::CGI
Ian Campbell [Mon, 1 Jul 2013 12:17:24 +0000 (13:17 +0100)]
CGI: Move common.pl to a proper module Emesinae::CGI

11 years agoCGI: use path based parameters for message links.
Ian Campbell [Mon, 1 Jul 2013 10:39:38 +0000 (11:39 +0100)]
CGI: use path based parameters for message links.

11 years agomake tidy
Ian Campbell [Mon, 1 Jul 2013 10:37:04 +0000 (11:37 +0100)]
make tidy

11 years agomessage.pl: Placeholder script (404 for now)
Ian Campbell [Mon, 1 Jul 2013 10:26:13 +0000 (11:26 +0100)]
message.pl: Placeholder script (404 for now)

11 years agobug.pl: retrieve a bug as an mbox
Ian Campbell [Mon, 1 Jul 2013 10:01:05 +0000 (11:01 +0100)]
bug.pl: retrieve a bug as an mbox

11 years agoreceive.pl: Preserve envelope From as first line
Ian Campbell [Mon, 1 Jul 2013 09:42:07 +0000 (10:42 +0100)]
receive.pl: Preserve envelope From as first line

Things like mbox generation prefer this.

THis bug is propagated to the /var/raw/NN.hdr files. The sed rune to fix is
'1h; 2{p;g;p}; 3,$p'.

    cd /var/raw/
    sudo find -name \*.hdr -print -exec sed -n -i -e '1h; 2{p;g;p}; 3,$p' {} \;

11 years agoTODO: update
Ian Campbell [Mon, 1 Jul 2013 09:11:27 +0000 (10:11 +0100)]
TODO: update

11 years agoTODO: control blacklisting functionality.
Ian Campbell [Mon, 17 Jun 2013 15:56:13 +0000 (16:56 +0100)]
TODO: control blacklisting functionality.

11 years agoSupport tagging bugs, use to implement affected version tracking
Ian Campbell [Thu, 6 Jun 2013 15:09:59 +0000 (16:09 +0100)]
Support tagging bugs, use to implement affected version tracking

An existing DB can be upgraded with:
8<-------------------------------------------------
create table tags (
       tag_id integer not null primary key autoincrement,
       namespace varchar, -- "component", "affects" etc
       name varchar,
       -- the following refer to the default visibility and setting in the search page.
       active bool default true, -- searched for by default
       advanced bool default false -- only shown in advanced search pane
);

create table bug2tag (
       bug_id integer not null references bugs ( bug_id ),
       tag_id integer not null references tags ( tag_id ),
       primary key ( bug_id, tag_id )
);
8<-------------------------------------------------

Followed by populating the tags table with a suitable set of names in the
"affects" namespace.

11 years agoAdd a "make check" target.
Ian Campbell [Thu, 6 Jun 2013 14:53:56 +0000 (15:53 +0100)]
Add a "make check" target.

Runs "perl -c" to check for syntax errors.

11 years agocss: Add some trailing semi-colons
Ian Campbell [Thu, 6 Jun 2013 14:53:29 +0000 (15:53 +0100)]
css: Add some trailing semi-colons

11 years agoTODO: Update
Ian Campbell [Thu, 6 Jun 2013 07:50:41 +0000 (08:50 +0100)]
TODO: Update

11 years agodb: Use a compound key for the refs table, ref_id is unneeded
Ian Campbell [Thu, 30 May 2013 11:18:42 +0000 (12:18 +0100)]
db: Use a compound key for the refs table, ref_id is unneeded

An existing DB can be upgraded with:
8<-------------------------------------------------
BEGIN TRANSACTION;
ALTER TABLE refs RENAME TO tmp_refs;
create table refs (
       parent_id integer not null references messages ( message_id ),
       child_id integer not null references messages ( message_id ),
       primary key ( parent_id, child_id )
);
INSERT OR IGNORE INTO refs(parent_id, child_id)
               SELECT parent_id, child_id FROM tmp_refs;
DROP TABLE tmp_refs;
COMMIT;
8<-------------------------------------------------

11 years agoxen-devel: Prepare for public alpha
Ian Campbell [Thu, 30 May 2013 11:00:12 +0000 (12:00 +0100)]
xen-devel: Prepare for public alpha

Remove password protection, send control replies to the list.

11 years agobugs.pl: Add facility to link to a page with information on the control interface
Ian Campbell [Thu, 30 May 2013 10:58:42 +0000 (11:58 +0100)]
bugs.pl: Add facility to link to a page with information on the control interface

11 years agocontrol.pl: Remove debugging prints
Ian Campbell [Thu, 30 May 2013 10:31:49 +0000 (11:31 +0100)]
control.pl: Remove debugging prints

11 years agocontrol.pl: Implement support for bugid == it
Ian Campbell [Thu, 30 May 2013 10:27:08 +0000 (11:27 +0100)]
control.pl: Implement support for bugid == it

This is an alias for the most recently referrenced bug

11 years agoUpdate example configurations for new Perl in Wheezy
Ian Campbell [Thu, 30 May 2013 10:12:03 +0000 (11:12 +0100)]
Update example configurations for new Perl in Wheezy

11 years agocontrol: Allow ControlAllow to come from a file
Ian Campbell [Wed, 29 May 2013 11:57:03 +0000 (12:57 +0100)]
control: Allow ControlAllow to come from a file

11 years agoDB: restructuring of the fields
Ian Campbell [Wed, 29 May 2013 11:13:12 +0000 (12:13 +0100)]
DB: restructuring of the fields

* Primary key for each table FOO is now consistently FOO_id rather than just ID.
* Fields which are taken from mail headers have a _hdr suffix.
* Fields which are taken raw from user input have a _raw suffix.

An existing DB can be upgraded with:
8<-------------------------------------------------
BEGIN TRANSACTION;
ALTER TABLE messages RENAME TO tmp_messages;
create table messages (
       message_id integer primary key autoincrement,
       msgid_hdr_raw varchar not null unique,
       present bool default false, -- following fields valid iff true

       inserttime integer default 0,

       -- XXX enum "normal", "control", "control-reply"
       msgtype char(16) default "normal", -- control / control-reply

       -- Selected header values
       msgdate_hdr_raw varchar,
       msgfrom_hdr_raw varchar,
       msgto_hdr_raw varchar,
       msgcc_hdr_raw varchar,
       subject_hdr_raw varchar
);
INSERT INTO messages(message_id,msgid_hdr_raw,present,inserttime,msgtype,msgdate_hdr_raw,msgfrom_hdr_raw,msgto_hdr_raw,msgcc_hdr_raw,subject_hdr_raw)
     SELECT id, messageid, present, inserttime, msgtype, msgdate, msgfrom, msgto, msgcc, subject
       FROM tmp_messages;
DROP TABLE tmp_messages;

ALTER TABLE refs RENAME TO tmp_refs;
create table refs (
       ref_id integer primary key autoincrement,
       parent_id integer references messages ( message_id ),
       child_id integer references messages ( message_id )
);
INSERT INTO refs(ref_id, parent_id, child_id)
     SELECT id,parentid,childid
       FROM tmp_refs;
DROP TABLE tmp_refs;

ALTER TABLE bugs RENAME TO tmp_bugs;
create table bugs (
       bug_id integer primary key autoincrement,
       title_raw varchar,
       creationdate integer,
       lastchangedate integer,
       owner_raw varchar,
       severity varchar,
       open bool default true
       -- xxx other fields
       -- tags?  component?
       -- affected branches?
);
INSERT INTO bugs(bug_id,title_raw,creationdate,lastchangedate,owner_raw,severity,open)
     SELECT id,title,creationdate, lastchangedate,owner,severity,open
       FROM tmp_bugs;
DROP TABLE tmp_bugs;

ALTER TABLE bug2message RENAME TO tmp_bug2message;
create table bug2message (
       bug2message_id integer primary key autoincrement,
       include bool default true, -- if true then graft, if false then exclude
       bug_id integer not null references bugs ( bug_id ),
       message_id integer not null references messages ( message_id )
);
INSERT INTO bug2message(bug2message_id,include,bug_id,message_id)
     SELECT id,include,bugid,messageid
       FROM tmp_bug2message;
DROP TABLE tmp_bug2message;

COMMIT;

8<-------------------------------------------------

11 years agoBug.pm: Add accessor methods for all fields
Ian Campbell [Wed, 29 May 2013 10:18:39 +0000 (11:18 +0100)]
Bug.pm: Add accessor methods for all fields

This consolidates all knowledge about db column names within the Bug module.

Also add a sanity check on the specified severity (and a test to match)

11 years agoTODO: Add some planned DB cleanups
Ian Campbell [Tue, 28 May 2013 11:24:48 +0000 (12:24 +0100)]
TODO: Add some planned DB cleanups

11 years agobugs.xenproject.org: Redirect / to /xen/
Ian Campbell [Fri, 24 May 2013 13:38:54 +0000 (14:38 +0100)]
bugs.xenproject.org: Redirect / to /xen/

11 years agoRun test bug installation on a separate vhost.
Ian Campbell [Tue, 28 May 2013 11:30:37 +0000 (12:30 +0100)]
Run test bug installation on a separate vhost.

11 years agoTODO list gardening
Ian Campbell [Fri, 24 May 2013 12:52:23 +0000 (13:52 +0100)]
TODO list gardening

11 years agoInstall with appropriate permissions
Ian Campbell [Fri, 24 May 2013 12:46:32 +0000 (13:46 +0100)]
Install with appropriate permissions

11 years agoMove static content out of document root
Ian Campbell [Fri, 24 May 2013 12:24:01 +0000 (13:24 +0100)]
Move static content out of document root

This will allow multiple trackers to share a host more easily.

11 years agoCGI: Include bugid as a path element instead of a CGI argument.
Ian Campbell [Fri, 24 May 2013 12:11:04 +0000 (13:11 +0100)]
CGI: Include bugid as a path element instead of a CGI argument.

This means that a bug URL changes from
http://.../test/bug.pl?id=N
to
http://.../test/bug/N

This is apparently much friendlier to search engines.

While there generate a 404 for a missing bug.

11 years agoRename tests now we have >10 of them
Ian Campbell [Fri, 24 May 2013 11:27:41 +0000 (12:27 +0100)]
Rename tests now we have >10 of them

11 years agoxen-devel README: Move DB to $prefix/var/run
Ian Campbell [Thu, 23 May 2013 16:23:59 +0000 (17:23 +0100)]
xen-devel README: Move DB to $prefix/var/run

11 years agoMerge branch 'master' of gitorious.org:emesinae/emesinae
Ian Campbell [Thu, 23 May 2013 16:22:16 +0000 (17:22 +0100)]
Merge branch 'master' of gitorious.org:emesinae/emesinae

11 years agoxen-devel: Move DB to prefix/var/run.
Ian Campbell [Thu, 23 May 2013 13:52:31 +0000 (14:52 +0100)]
xen-devel: Move DB to prefix/var/run.

THis will let al the core directories be root owned.

11 years agoTODO: Taint mode
Ian Campbell [Thu, 23 May 2013 13:44:14 +0000 (14:44 +0100)]
TODO: Taint mode

11 years agobugs.pl: Remove misleading title search box (still TBD)
Ian Campbell [Thu, 23 May 2013 13:43:02 +0000 (14:43 +0100)]
bugs.pl: Remove misleading title search box (still TBD)

11 years agoTODO: Make things nicer for search engines
Ian Campbell [Thu, 23 May 2013 13:41:30 +0000 (14:41 +0100)]
TODO: Make things nicer for search engines

11 years agobug.pl: Handle lack of id paramter
Ian Campbell [Thu, 23 May 2013 13:37:10 +0000 (14:37 +0100)]
bug.pl: Handle lack of id paramter

11 years agoCGI: Limit the amount of P{OST data we accept.
Ian Campbell [Thu, 23 May 2013 13:27:59 +0000 (14:27 +0100)]
CGI: Limit the amount of P{OST data we accept.

11 years agoBug.pm: Ensure severities are valid before passing them to SQL
Ian Campbell [Thu, 23 May 2013 13:27:29 +0000 (14:27 +0100)]
Bug.pm: Ensure severities are valid before passing them to SQL

Spotted by Tim Deegan

11 years agoreceive.pl: Define $id earlier in case of early error
Ian Campbell [Thu, 23 May 2013 10:00:46 +0000 (11:00 +0100)]
receive.pl: Define $id earlier in case of early error

11 years agoUpdate test config for deployment on test system
Ian Campbell [Thu, 23 May 2013 09:34:08 +0000 (10:34 +0100)]
Update test config for deployment on test system

11 years agoMove test configuration under configs/examples
Ian Campbell [Thu, 23 May 2013 08:23:42 +0000 (09:23 +0100)]
Move test configuration under configs/examples

11 years agoBuild: Allow .config to specify local configuration paths.
Ian Campbell [Thu, 23 May 2013 08:21:41 +0000 (09:21 +0100)]
Build: Allow .config to specify local configuration paths.

11 years agoTidy
Ian Campbell [Wed, 22 May 2013 16:04:21 +0000 (17:04 +0100)]
Tidy

11 years agocontrol.pl: Handle ControlAllow case-insensitively
Ian Campbell [Wed, 22 May 2013 11:45:56 +0000 (12:45 +0100)]
control.pl: Handle ControlAllow case-insensitively

(second attempt)

11 years agobugs.pl: Sanitise title HTML
Ian Campbell [Wed, 22 May 2013 15:09:08 +0000 (16:09 +0100)]
bugs.pl: Sanitise title HTML

11 years agobug.pl: Sanitise HTML in bug title.
Ian Campbell [Wed, 22 May 2013 15:05:04 +0000 (16:05 +0100)]
bug.pl: Sanitise HTML in bug title.

11 years agoRevert "control.pl: Handle ControlAllow case-inseensitively"
Ian Campbell [Wed, 22 May 2013 12:03:18 +0000 (13:03 +0100)]
Revert "control.pl: Handle ControlAllow case-inseensitively"

This reverts commit da3b0722525a2fbe4ab4981ebba26136b2960622.

11 years agocontrol.txt: Document which commands are privileged
Ian Campbell [Wed, 22 May 2013 11:56:50 +0000 (12:56 +0100)]
control.txt: Document which commands are privileged

11 years agoTODO: Few more suggestions
Ian Campbell [Wed, 22 May 2013 11:50:37 +0000 (12:50 +0100)]
TODO: Few more suggestions

11 years agocontrol.pl: Parse message ids while looking them up
Ian Campbell [Wed, 22 May 2013 11:46:35 +0000 (12:46 +0100)]
control.pl: Parse message ids while looking them up

11 years agocontrol.pl: Handle ControlAllow case-inseensitively
Ian Campbell [Wed, 22 May 2013 11:45:56 +0000 (12:45 +0100)]
control.pl: Handle ControlAllow case-inseensitively

11 years agoTODO: Way to reference the root mail of a thread
Ian Campbell [Wed, 22 May 2013 11:28:29 +0000 (12:28 +0100)]
TODO: Way to reference the root mail of a thread

11 years agoFix spelling of "Wherever"
Ian Campbell [Wed, 22 May 2013 10:28:38 +0000 (11:28 +0100)]
Fix spelling of "Wherever"

11 years agoAllow configuration of control replies to the list
Ian Campbell [Wed, 22 May 2013 10:27:23 +0000 (11:27 +0100)]
Allow configuration of control replies to the list

Disable for bugs.xenproject.org for now

11 years agoTidy
Ian Campbell [Wed, 22 May 2013 10:10:26 +0000 (11:10 +0100)]
Tidy

11 years agoInstall control.txt in webroot and reference it.
Ian Campbell [Wed, 22 May 2013 10:09:46 +0000 (11:09 +0100)]
Install control.txt in webroot and reference it.

11 years agobugs.xenproject.org: Send control replies to sender
Ian Campbell [Wed, 22 May 2013 09:36:58 +0000 (10:36 +0100)]
bugs.xenproject.org: Send control replies to sender

I'm a little bit worried about Joe Jobs hear, but lets see how it goes.

11 years agobugs.xenproject.org: Control address is xen@
Ian Campbell [Wed, 22 May 2013 08:48:57 +0000 (09:48 +0100)]
bugs.xenproject.org: Control address is xen@

11 years agoSpecify only local part for control & owner address in config
Ian Campbell [Wed, 22 May 2013 08:43:32 +0000 (09:43 +0100)]
Specify only local part for control & owner address in config

Use $c{ControlAddress} in receive.pl so that the control address can actually
be changed.

Better document some config keys.

11 years agobugs: make list name a link
Ian Campbell [Mon, 20 May 2013 14:59:34 +0000 (09:59 -0500)]
bugs: make list name a link

11 years agoConfig for xen-devel tracker, up to cronjob
Ian Campbell [Mon, 20 May 2013 14:59:20 +0000 (09:59 -0500)]
Config for xen-devel tracker, up to cronjob

11 years agoConfig for xen-devel tracker, up to apache configuration
Ian Campbell [Mon, 20 May 2013 14:02:37 +0000 (09:02 -0500)]
Config for xen-devel tracker, up to apache configuration

11 years agouse suffix .cgi for cgi scripts
Ian Campbell [Mon, 20 May 2013 13:48:44 +0000 (08:48 -0500)]
use suffix .cgi for cgi scripts

At least bug.pl appears to be blacklisted in our content filter. As well as
filing a bug there workaround it.

11 years agoAlloc configuration of cgi path
Ian Campbell [Mon, 20 May 2013 13:43:18 +0000 (08:43 -0500)]
Alloc configuration of cgi path

11 years agoConfig for xen-devel tracker, up to mail processing
Ian Campbell [Mon, 20 May 2013 12:57:13 +0000 (07:57 -0500)]
Config for xen-devel tracker, up to mail processing

11 years agoREADME: Start a list of dependencies
Ian Campbell [Mon, 20 May 2013 12:56:54 +0000 (07:56 -0500)]
README: Start a list of dependencies

11 years agocontrol: Try not to encourage people to report issues^Wbugs to -owner.
Ian Campbell [Mon, 20 May 2013 12:56:11 +0000 (07:56 -0500)]
control: Try not to encourage people to report issues^Wbugs to -owner.

11 years agoreceive: downcase maildrop address for comparison.
Ian Campbell [Mon, 20 May 2013 12:31:23 +0000 (07:31 -0500)]
receive: downcase maildrop address for comparison.

Even with removing the downcasing of the local part it seems to happen. Exim I
suppose.

11 years agosendmail: Needs IO::Handle
Ian Campbell [Mon, 20 May 2013 12:09:37 +0000 (07:09 -0500)]
sendmail: Needs IO::Handle

11 years agocontrol: Fix syntax error
Ian Campbell [Mon, 20 May 2013 12:09:27 +0000 (07:09 -0500)]
control: Fix syntax error

11 years agoMake it possible to build then install as a different user
Ian Campbell [Mon, 20 May 2013 10:14:22 +0000 (05:14 -0500)]
Make it possible to build then install as a different user

11 years agoClean Emesinae/Paths.pm
Ian Campbell [Mon, 20 May 2013 10:11:41 +0000 (05:11 -0500)]
Clean Emesinae/Paths.pm

12 years agoUpdate TODO
Ian Campbell [Sun, 12 May 2013 19:40:03 +0000 (20:40 +0100)]
Update TODO

12 years agoImprove error mail when rejecting message
Ian Campbell [Sun, 12 May 2013 19:38:36 +0000 (20:38 +0100)]
Improve error mail when rejecting message

12 years agomake tidy
Ian Campbell [Sun, 12 May 2013 19:23:52 +0000 (20:23 +0100)]
make tidy

12 years agoFiddle with who rpelies go to, especially failed processing.
Ian Campbell [Sun, 12 May 2013 19:23:27 +0000 (20:23 +0100)]
Fiddle with who rpelies go to, especially failed processing.

12 years agoNumerical sorting in bug lists
Ian Campbell [Sun, 12 May 2013 19:13:47 +0000 (20:13 +0100)]
Numerical sorting in bug lists

12 years agoRationalise tests.
Ian Campbell [Sun, 12 May 2013 19:07:27 +0000 (20:07 +0100)]
Rationalise tests.

12 years agoFirst cut at outgoing mail spooling
Ian Campbell [Sun, 12 May 2013 18:53:30 +0000 (19:53 +0100)]
First cut at outgoing mail spooling

Need to setup a proper MUA to take this any further.

Also improved test cases.

12 years agoImprove handling of messages with no message-id
Ian Campbell [Sun, 12 May 2013 18:51:48 +0000 (19:51 +0100)]
Improve handling of messages with no message-id

12 years agoTODO: Update
Ian Campbell [Mon, 28 Jan 2013 21:33:41 +0000 (21:33 +0000)]
TODO: Update

12 years agotest: update
Ian Campbell [Mon, 28 Jan 2013 21:33:24 +0000 (21:33 +0000)]
test: update

12 years agobug: Hide control replies
Ian Campbell [Mon, 28 Jan 2013 21:32:29 +0000 (21:32 +0000)]
bug: Hide control replies

12 years agocontrol: set msgtype and improve handling of missing headers
Ian Campbell [Mon, 28 Jan 2013 21:30:28 +0000 (21:30 +0000)]
control: set msgtype and improve handling of missing headers

12 years agoAdd a msgtype field to db.
Ian Campbell [Mon, 28 Jan 2013 21:29:15 +0000 (21:29 +0000)]
Add a msgtype field to db.

12 years agoTODO: consideration of replies to control messages.
Ian Campbell [Sun, 13 Jan 2013 19:40:23 +0000 (19:40 +0000)]
TODO: consideration of replies to control messages.

12 years agoImprove test cases, add script to run entire test.
Ian Campbell [Sun, 13 Jan 2013 19:39:54 +0000 (19:39 +0000)]
Improve test cases, add script to run entire test.

12 years agocreatedb.sh: look for sql in same location as script
Ian Campbell [Sun, 13 Jan 2013 19:39:04 +0000 (19:39 +0000)]
createdb.sh: look for sql in same location as script

12 years agocontrol.pl: improve References header on reply
Ian Campbell [Sun, 13 Jan 2013 19:37:39 +0000 (19:37 +0000)]
control.pl: improve References header on reply

If the original message didn't have a references header but did have an
in-reply-to then fabricate a references header.

12 years agocontrol.pl: Footer contains modified as well as new bugs
Ian Campbell [Sun, 13 Jan 2013 19:37:14 +0000 (19:37 +0000)]
control.pl: Footer contains modified as well as new bugs

12 years agoMove stuff to db/ and config/ subdirs
Ian Campbell [Sun, 13 Jan 2013 17:43:02 +0000 (17:43 +0000)]
Move stuff to db/ and config/ subdirs

12 years agoFix handling of not present bugs
Ian Campbell [Sun, 13 Jan 2013 17:39:00 +0000 (17:39 +0000)]
Fix handling of not present bugs

12 years agoAdd test mail corpus.
Ian Campbell [Sun, 13 Jan 2013 17:32:09 +0000 (17:32 +0000)]
Add test mail corpus.

12 years agocontrol.pl: Queue reply
Ian Campbell [Sun, 13 Jan 2013 16:39:21 +0000 (16:39 +0000)]
control.pl: Queue reply

12 years agoInclude example config in tidy
Ian Campbell [Sun, 13 Jan 2013 16:27:32 +0000 (16:27 +0000)]
Include example config in tidy

12 years agoTweak
Ian Campbell [Sun, 13 Jan 2013 16:25:12 +0000 (16:25 +0000)]
Tweak

12 years agoOptionally Archive mails are receive time
Ian Campbell [Sun, 13 Jan 2013 15:12:02 +0000 (15:12 +0000)]
Optionally Archive mails are receive time

12 years agoTidy
Ian Campbell [Sun, 13 Jan 2013 15:09:41 +0000 (15:09 +0000)]
Tidy

12 years agobug.pl: handle attachments (with link to current non-existent message.pl)
Ian Campbell [Sun, 13 Jan 2013 13:55:42 +0000 (13:55 +0000)]
bug.pl: handle attachments (with link to current non-existent message.pl)

12 years agoMore TODO items
Ian Campbell [Sun, 13 Jan 2013 13:47:42 +0000 (13:47 +0000)]
More TODO items