Commit Graph

23 Commits

Author SHA1 Message Date
Alex Schroeder
e46c89e90f rc2mail now adds some newlines to the HTML mail being sent. 2012-12-21 11:14:09 +01:00
Alex Schroeder
f451e62d30 Delay writing of the timestamp. 2012-08-14 09:05:22 -04:00
Alex Schroeder
b885287ea2 Use binmode utf8 when sending files. 2012-07-19 10:53:13 +02:00
Alex Schroeder
dda9ec5668 Fix getopts call. 2011-10-12 16:19:40 +00:00
Alex Schroeder
143bde748c Separate verbose into verbose and debug output. 2011-01-28 11:21:16 +00:00
Alex Schroeder
a69e7d93a7 (send_mail): Introduced new -q flag and print
confirmation message unless the quiet flag is used.
2010-08-14 09:06:25 +00:00
Alex Schroeder
3179dfb882 (get_timeframe): Replaced by get_timestamp and
update_timestamp.
(get_timestamp): New. Return from=x or days=1.
(update_timestamp): New. Update timestamp or create timestamp file
if necessary.
(get_rss): Call the two new functions.
(send_files): Always print a message when mail has been sent.
2009-12-28 22:20:19 +00:00
Alex Schroeder
85f375712d Support Net::SMTP::TLS and Net::SMTP::SSL 2009-10-02 15:36:38 +00:00
Alex Schroeder
6b6416db0d (get_timeframe): Added error message when open fails. 2009-09-28 20:14:47 +00:00
Alex Schroeder
0f319df8e9 (get_subscribers): Report number of subscribers per site. 2009-09-28 14:37:29 +00:00
Alex Schroeder
a6bd5af4c7 (get_timeframe): Create path to filename used for -t
option if it does not exist. Requires File::Basename and
File::Path.
2009-09-28 14:28:34 +00:00
Alex Schroeder
bfb4a85fb5 Introduce -t option.
(get_timeframe): New function.
(get_rss): Use it.
2009-09-09 10:41:16 +00:00
Alex Schroeder
84e4b08f4f (main): Skip sending files if there were no subscribers (assuming a
lot of wikis without subscribers, eg. when using namespaces).
2009-06-07 18:34:50 +00:00
Alex Schroeder
b697516e76 *** empty log message *** 2009-06-07 18:26:26 +00:00
Alex Schroeder
2185c11da3 *** empty log message *** 2009-06-07 18:24:57 +00:00
Alex Schroeder
7f1e2744da (main): Get RSS before getting subscribers. Skip
getting subscribers if there were no items in the feed.
2009-06-07 18:21:59 +00:00
Alex Schroeder
ba0ad3b648 (get_rss): Use short=0 in the URL.
(send_file): Return unless there are subscribers.
2009-06-07 11:40:47 +00:00
Alex Schroeder
2eed41e987 (get_rss): Use short=0 in the URL. 2009-06-06 23:25:20 +00:00
Alex Schroeder
ec1e088ac3 Add verbose output 2009-06-06 23:14:07 +00:00
Alex Schroeder
8bdb740599 (get_subscribers): Add newline for error message. 2009-06-06 16:30:55 +00:00
Alex Schroeder
566d013ba9 Added mail sending. 2009-06-06 16:04:39 +00:00
Alex Schroeder
983302d173 Rewrite using structural programming. 2009-06-05 23:34:34 +00:00
Alex Schroeder
75624a538e The beginning of a new file. It will read the wiki
RSS feed and the list of subscribers. Eventually it will then send
out HTML emails to the people subscribed.
2009-06-04 06:43:54 +00:00