Commit graph

65 commits

Author SHA1 Message Date
River Tarnell
a6f6e04841 instead of storing every mail as a job, have a job to send enotif updates for the whole mail at once. 2007-05-11 16:42:18 +00:00
River Tarnell
af16ff1358 english stripping 2007-05-11 15:21:06 +00:00
River Tarnell
10b254085d mail() sending was not chucking recips properly in array path, from Nick Jenkins 2007-05-08 08:28:34 +00:00
River Tarnell
59d5f6a703 < brion-sushi> Error sending mail: Undefined variable: dest
- don't try to log destination in debug message
2007-05-07 17:56:00 +00:00
River Tarnell
67044a931c - default value of $wgEnotifImpersonal should be false
- userMailer() needs to handle multiple recips in mail() path
2007-05-06 07:14:10 +00:00
River Tarnell
848d8f4611 allow enotif mails to be sent via job queue 2007-05-05 12:44:55 +00:00
River Tarnell
03df01a7fa enotif should have a way to send bulk mail without customisations, for large sites 2007-05-05 12:08:24 +00:00
Tim Starling
644c2a89ff Added $wgUsersNotifedOnAllChanges, array of usernames who will be sent a notification email for every change which occurs on a wiki 2007-04-22 14:07:28 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Brion Vibber
3a6ac5a3c3 Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.
If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :)
2007-03-28 14:16:43 +00:00
Nick Jenkins
5fef2333d4 PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation tweaking stuff.
Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made:
* @url becomes @link
* @fixme becomes @todo
* HTML tags in descriptions must be closed / balanced.
* @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending)
* @obsolete becomes @deprecated
* Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed
* @access must be a valid access level.
* @desc tag not needed, removed.
* Doesn't seem to like @licence, will accept @license however.
* Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */")

Then additional to this, to get some class docs associated with their respective classes:
* Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers)
* Marked some classes without docs as "@todo document"
* (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory)
2007-03-28 08:53:02 +00:00
Antoine Musso
520598e6e5 Fix #4347: use MailAddress object for reply-to 2007-02-03 22:55:01 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d Rename constructors to __constructor 2007-01-20 13:34:31 +00:00
Nick Jenkins
0e2426cc65 E_STRICT minor tweaks:
* Strict Standards: Undefined index:  currevisionid in includes/Skin.php on line 287
* Strict Standards: Undefined index:  oldid in includes/Skin.php on line 288
[ Repo above with error_logging(E_ALL | E_STRICT) in LocalSettings.php, and a non-default skin, e.g: http://localhost/wiki/index.php?title=Main_Page&useskin=nostalgia ]
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/UserMailer.php on line 42
2006-12-04 11:28:48 +00:00
Nick Jenkins
a474761d9a Changing lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to be like this: "list ($page, $archive) = $dbw->tableNamesN( 'page', 'archive' );".
Three reasons for this:
1) It's better for analysis tools [which want explicit variable declaration]
2) It's easier for a human to read, as it's completely explicit where the variables came from [which is something you don't get with extract() ]
3) It makes it easier to find everywhere where a variable is used with search/grep [which you can't currently do with $tbl_page variables from things like: "extract($db->tableNames( 'page', 'revision'), EXTR_PREFIX_ALL, 'tbl');"].

Otherwise, from a functionality/efficiency perspective the two forms should be identical.

By doing this have been able run static analysis over the usages of these variables, thus eliminating 5 unneeded table names from calls, plus removing 3 unused calls entirely, and it just feels subjectively slightly nicer to me.
2006-11-27 08:36:57 +00:00
Tim Starling
a3b490d2c4 * Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Tim Starling
8a61d5fc2e Fixed line endings on Windows. Cleaned up PHP 5 error messages. 2006-10-14 05:38:31 +00:00
Brion Vibber
b31d2a51cf Handle failure of Mail::factory() gracefully 2006-10-04 23:35:29 +00:00
Rob Church
70b000f0fb * (bug 4979) Use simplified email addresses when running on Windows 2006-08-30 13:51:37 +00:00
Brion Vibber
f7d4f86c7b * (bug 7010) Don't send email notifications for watched talk pages when user
has selected to receive only updates for their own talk page
2006-08-18 01:43:33 +00:00
Tim Starling
489a4a55cf profiling 2006-07-26 03:51:49 +00:00
Brion Vibber
3b3fe578ef * (bug 6243) Fix email for usernames containing dots when using PEAR::Mail 2006-06-09 08:24:47 +00:00
Domas Mituzas
1aacbbf476 autoload WikiError 2006-06-06 11:51:31 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Brion Vibber
5cfddf9a82 * (bug 3407) Fix encoding of subject and from/to headers on notification
mails; userMailer() now takes a MailAddress wrapper object instead of
  a raw string to abstract things a level.
2005-12-12 06:04:45 +00:00
Brion Vibber
1a21a9ad74 * (bug 3211) Include Date, To mail headers when using PEAR::Mail 2005-12-12 04:51:53 +00:00
Brion Vibber
d815ca352f * (bug 4201) Fix user-talk mode for Enotif, and general code cleanup
- treat NULL properly in watchlist lookup for notification sending
- consolidate a lot of ugly code that fiddles in those tables
- use user_newtalk consistently in enotif mode; watchlist for email notifications, user_newtalk for on-screen message and status check
- clean up handling of other peoples' user_talk pages when in the talk-only limited enotif: only your own will get sent, not other people watching your page
- and others watching your page _will_ work in watchable enotif mode
- add a watch on page + talk page consistently for the auto-add of the user talk page, not just half the page
- don't unwatch the user talk page on view! that's just wacky
- removed UserTalkUpdate, now redundant
- have User::setNewTalk() apply immediately
- clear newtalk from User::clearNotification() and User::clearAllNotifications()
2005-12-07 11:52:34 +00:00
Antoine Musso
0db8ece2b1 * code formatting
* comment
* useless calls
2005-12-04 20:20:03 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +00:00
Niklas Laxström
c431c9af1a Bug 3307: Remove an if that might break timezone 2005-09-14 21:04:48 +00:00
River Tarnell
b817c0c15f merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively. 2005-08-02 13:35:19 +00:00
Brion Vibber
ebd444b306 Remove unused use of undefined variable 2005-07-22 11:21:57 +00:00
Brion Vibber
25c2891ceb Cleaned up email notification message formatting:
* Wrap long lines on output (long URLs will not themselves break, though)
* Use correct formatting of user page and watched page links
* For anon editors, don't show a special:emailuser link
* Use shorter form for Special:Watchlist/edit
2005-07-10 02:52:33 +00:00
Brion Vibber
17cc63d4d9 * Removed -f parameter from mail() usage, likely to cause failures and bounces. 2005-06-02 03:12:54 +00:00
Tim Starling
5703792bbb Removed "show updated marker" user preference option. It's now visually inoffensive, and has no performance penalty for reads, so there's no reason users would want to have it off. System administrators may want to have it off though, since it impacts on page save performance. Also changed the watchlist header format. 2005-05-29 04:29:29 +00:00
Anders Wegge Jakobsen
e4ffbce51d Removed what seems to be unused strings from composeCommonMailtext(). More work needs to be done. 2005-05-28 19:30:45 +00:00
Tim Starling
51c6a4b640 one wl_notificationtimestamp update query for all users, instead of one for each 2005-05-28 15:33:22 +00:00
Anders Wegge Jakobsen
481c65ce2d * (bug 2105) Add a space between -f and the from address in the mail() call. 2005-05-22 08:32:41 +00:00
Tim Starling
554bbccf31 Attempting to get enotif into working order. Many aesthetic changes, a fair number of bug fixes too. There's also a couple of non-enotif bug fixes in this commit somewhere. 2005-05-14 17:55:04 +00:00
Brion Vibber
6ae4afa16e Regexp in wfQuotedPrintable_name_and_emailaddr is wrong and sometimes fails under conditions not fully explored. Should be removed and replaced with cleaner interface, probably. In the meantime, wrapping in a check and adding some debug statements. 2005-04-27 21:26:39 +00:00
Brion Vibber
aed4a04076 Clean up e-mail authentication code.
* Add Special:Confirmemail unlisted page for requesting confirmation emails and as the destination
* There is now a confirmation token separate from the login password, which is cleaner and hopefully a lot less confusing.
* Confirmation token expires after 7 days
* Added support functions for nullable timestamp columns: wfTimestampOrNull and Database::timestampOrNull
* userMailer now returns WikiError objects
* Added convenience functions to User for email management, consolidated some checks

There are changes to the user table, so run update.php
2005-04-25 18:38:43 +00:00
Ævar Arnfjörð Bjarmason
63745ea274 * Redundant, timeanddate() no longer takes that paramater. 2005-04-10 18:42:16 +00:00
Brion Vibber
be5d748b2d patch typo 2005-03-26 08:31:21 +00:00
Brion Vibber
a8e068a247 * (bug 1746) Make full subject line quoted-printable
Applied patch by Tom Gries
2005-03-26 01:21:01 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Antoine Musso
9f329bc6e6 phpdoc comments 2005-01-27 18:19:16 +00:00