Skip to content
Browse files

Fixed wrong copyright header, heh

  • Loading branch information...
1 parent 02d2a11 commit 2baceafa97343a655dfde1988a5af49148261215 @ditesh committed Dec 19, 2011
Showing with 49 additions and 20 deletions.
  1. +1 −1 .gitignore
  2. +26 −1 demo.js
  3. +21 −17 main.js
  4. +1 −1 package.json
View
2 .gitignore
@@ -1,2 +1,2 @@
.*.sw?
-.lock-wscript
+node_modules/
View
27 demo.js
@@ -1,6 +1,31 @@
+/*
+
+ node-mboxrd demo file
+ Copyright (C) 2011 Ditesh Shashikant Gathani <ditesh@gathani.org>
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+*/
+
var fs = require("fs");
var mboxrd = require("./main.js").mboxrd;
-var filename = "mbox";
+var filename = "mbox"; // This is slightly sloppy - be sure to have your mboxrd file named mbox in the current directory
var count = 0;
var fd = fs.openSync(filename, "r+");
View
38 main.js
@@ -1,27 +1,31 @@
/*
- node-mboxrd
- By Ditesh Shashikant Gathani (ditesh@gathani.org) Copyright 2011
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+ node-mboxrd library
+ Copyright (C) 2011 Ditesh Shashikant Gathani <ditesh@gathani.org>
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
*/
var fs = require("fs");
var util = require("util");
var events = require("events");
-var hashlib = require("hashlib");
var unixlib = require("unixlib");
this.mboxrd = function(fd, options) {
@@ -202,7 +206,7 @@ this.mboxrd = function(fd, options) {
});
});
});
- }; // Don't you love the chain of closing braces? :)
+ }; // Don't you love the chain of closing function calls? :)
// Private methods follow
// Write modifications to temp file
View
2 package.json
@@ -9,7 +9,7 @@
"email": "ditesh@gathani.org",
"url": "http://ditesh.gathani.org/blog/"
},
- "dependencies": ["unixlib", "hashlib"]
+ "dependencies": ["unixlib"],
"repository": { "type" : "git", "url" : "https://github.com/ditesh/node-mboxrd.git" },
"main": "main.js"
}

0 comments on commit 2baceaf

Please sign in to comment.
Something went wrong with that request. Please try again.