Bug#784788: rss2email: r2e-migrate forgets about email addresses

2015-12-12 Thread W. Trevor King
On Fri, May 08, 2015 at 09:54:38PM +0200, Yves-Alexis Perez wrote: > This is really painful, especially considering it's apparently not > possible to edit a feed afterwards. It looks like Etienne covered this issue already (thanks, Etienne :), but the way to edit feeds after ‘r2e add …’ is to just

Bug#807748: rss2email: option to set user-agent

2015-12-12 Thread W. Trevor King
On Sat, Dec 12, 2015 at 11:57:43AM +0100, Samuele Battarra wrote: > some feeds start to apply filters on accepted user-agent, it could > be handy to have a way to set it to a custom value. Andrés floated code for this a while back [1], but it's tied up with some Maildir stuff. I'm still on the fe

Bug#760963: rejects xml feed based on http server mie type

2014-09-28 Thread W. Trevor King
On Sun, Sep 28, 2014 at 10:10:22PM +0200, Etienne Millon wrote: > Here is the patch I applied and forwarded. Merged in a4b5ee45 (Merge branch 'content-type-warning', 2014-09-28), thanks :). signature.asc Description: OpenPGP digital signature

Bug#760963: rejects xml feed based on http server mie type

2014-09-26 Thread W. Trevor King
On Fri, Sep 26, 2014 at 05:58:01PM +0200, Etienne Millon wrote: > IMHO it's best to add an extra case to display a warning if exc is a > NonXMLContentType exception (like the case just above for > CharacterEncodingOverride), and to keep the existing behaviour (log > an error) for other exception cl

Bug#760969: blows away file permissions on rss2email.cfg

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 11:06:26AM -0400, Joey Hess wrote: > Each time it is used to update list of feeds, r2e rewrites > rss2email.cfg, and neglects to preserve its file permissions when > doing so. Hmm. It's possible we can use shutil.copy2 to seed the new versions [1]. The approach would be:

Bug#760963: rejects xml feed based on http server mie type

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 10:58:53AM -0400, Joey Hess wrote: > Perhaps if it's not a fatal problem it should not display as an > "error"? I problably should have done this a while ago. It's in master now [1]. Cheers, Trevor [1]: https://github.com/wking/rss2email/commit/e3a51b3cc6e7a99459ec7e968

Bug#760963: rejects xml feed based on http server mie type

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 09:13:57AM -0700, W. Trevor King wrote: > On Tue, Sep 09, 2014 at 10:58:53AM -0400, Joey Hess wrote: > > Perhaps if it's not a fatal problem it should not display as an > > "error"? > > I problably should have done this a while ago. It

Bug#760965: processing error: 'str' does not support the buffer interface:

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 11:02:03AM -0400, Joey Hess wrote: > W. Trevor King wrote: > > Duplicate for #760078? > > In this case, the rss feed has items, but I am not getting any email > from rss2email for that feed. So not a duplicate, I think. #760078 is about a problem w

Bug#760965: processing error: 'str' does not support the buffer interface:

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 10:45:17AM -0400, Joey Hess wrote: > joey@kite:~/.config>r2e add test http://test:t...@www.kitenet.net/index.rss > joey@kite:~/.config>r2e run test > processing error: 'str' does not support the buffer interface: test > (http://test:t...@www.kitenet.net/index.rss -> j...@ki

Bug#760963: rejects xml feed based on http server mie type

2014-09-09 Thread W. Trevor King
On Tue, Sep 09, 2014 at 10:35:50AM -0400, Joey Hess wrote: > joey@kite:~>r2e add electoral-vote http://www.electoral-vote.com/index.rss > joey@kite:~>r2e run electoral-vote > processing error: application/octet-stream is not an XML media type: > electoral-vote (http://www.electoral-vote.com/index

Bug#760078: rss2email: No longer able to access password-protected feeds

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 07:36:29PM -0400, Liam Morland wrote: > lkmorlan@burns:~$ wget --user=lkmorlan --password='' -S > '<...>/mediawiki/api.php?action=feedrecentchanges&feedformat=atom' Ah, the MediaWiki URL was enough of a hint for me to reproduce this with my Wikipedia account [1]. The prob

Bug#760197: rss2email: No warning when adding new feed with same name

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 03:36:09PM -0400, Liam K Morland wrote: > lkmorlan:~$ r2e add example http://example.com/feed1 > lkmorlan:~$ r2e add example http://example.com/feed2 > lkmorlan:~$ r2e list > 1: [*] example (http://example.com/feed2 -> lkmorlan) > 2: [*] example (http://example.com/feed2 ->

Bug#760078: rss2email: No longer able to access password-protected feeds

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 06:28:09PM -0400, Liam Morland wrote: > Commands using a valid feed with username and password in place of > "": > > lkmorlan@burns:~$ r2e new lkmorlan > lkmorlan@burns:~$ r2e add feed '' > lkmorlan@burns:~$ r2e -VVV run > … > process feed ( -> lkmorlan) > HTTP status 200

Bug#760078: rss2email: No longer able to access password-protected feeds

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 05:43:30PM -0400, Liam Morland wrote: > process example (http://user:passw...@example.com/feed -> lkmorlan) > HTTP status 200 > could not get HTTP headers: example (http://user:passw...@example.com/feed -> > lkmorlan) > unrecognized version: example (http://user:passw...@ex

Bug#760078: rss2email: No longer able to access password-protected feeds

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 03:18:44PM -0400, Liam Morland wrote: > I can add it, but it errors on run: > > lkmorlan@burns:~$ r2e add example http://user:passw...@example.com/feed > lkmorlan@burns:~$ r2e run > processing error: 'str' does not support the buffer interface: example > (http://user:passw

Bug#760078: rss2email: No longer able to access password-protected feeds

2014-09-01 Thread W. Trevor King
On Mon, Sep 01, 2014 at 06:14:46PM +0200, Etienne Millon wrote: > * Liam K Morland: > > r2e add http://user:passw...@example.com/feed > > > > Upon "r2e run", it gives a confusing error message if it has any > > such feeds in the database: > > > > processing error: 'str' does not support the buffe

Bug#742215: rss2email: invalid User-Agent

2014-03-20 Thread W. Trevor King
On Thu, Mar 20, 2014 at 09:00:20PM +0100, Jakub Wilk wrote: > * W. Trevor King, 2014-03-20, 12:49: > >We should be able to use: > > > > User-Agent: rss2email/3.8 (https://github.com/wking/rss2email) > > > >Does that sound legal to you? > > Yes, looks g

Bug#742215: rss2email: invalid User-Agent

2014-03-20 Thread W. Trevor King
On Thu, Mar 20, 2014 at 08:37:37PM +0100, Jakub Wilk wrote: > User-Agent: rss2email/3.8 +https://github.com/wking/rss2email > > This is violation of RFC 2616 (HTTP/1.1), which defines the following > syntax for the User-Agent field: > >User-Agent = "User-Agent" ":" 1*( product | comment

Bug#740385: rss2email: can't set verbosity in rss2email.cfg

2014-02-28 Thread W. Trevor King
On Fri, Feb 28, 2014 at 10:40:06PM +0100, Jakub Wilk wrote: > I tried setting "verbose = debug" in the configuration file, but it > doesn't seem to have any effect. Yeah, that's not wired up yet. -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, se

Bug#740384: rss2email: fails to raise NoToEmailAddress: TypeError: __init__() missing 1 required positional argument: 'feed'

2014-02-28 Thread W. Trevor King
On Fri, Feb 28, 2014 at 10:32:20PM +0100, Jakub Wilk wrote: > raise _error.NoToEmailAddress(feeds=feeds) > TypeError: __init__() missing 1 required positional argument: 'feed' Oops, thanks. Should be fixed in: git://github.com/wking/rss2email.git no-to-email-error with 763d9a8 (command:

Bug#740383: rss2email: unhelpful "timeout exceeded" warnings

2014-02-28 Thread W. Trevor King
On Fri, Feb 28, 2014 at 10:00:23PM +0100, Jakub Wilk wrote: > This is not very helpful, because it doesn't say _which_ server > caused the problem. As I mentioned this morning on the mailing list [1], you can figure out which feed is involved by using '-VV'. A more elegant solution would be nice,

Bug#740371: r2e-migrate: doesn't honour XDG_DATA_HOME: No such file or directory: '/home/jwilk/.local/share/rss2email.json'

2014-02-28 Thread W. Trevor King
On Fri, Feb 28, 2014 at 07:09:18PM +0100, Jakub Wilk wrote: > I don't have ~/.local/, because I have XDG_DATA_HOME set to something > else, and apparently r2e-migrate doesn't honour this variable. Rss2email itself currently has it's own XDG implementation, but there's also pyxdg [1] which provide

Bug#734327: rss2email "TypeError: sequence item 1: expected string or Unicode, NoneType found"

2014-01-05 Thread W. Trevor King
Jeroen, On Mon, Jan 06, 2014 at 12:43:53AM +0100, Jeroen Massar wrote: > Package: rss2email > Version: 1:2.71-2 I've picked up maintenance for rss2email [1], and started the 3.x series which is the basis of new Debian packages [2]. You might want to give that a spin and see if you can reproduce

Bug#446160: reopening 446160

2013-09-28 Thread W. Trevor King
On Fri, Sep 27, 2013 at 11:02:57AM +0200, Etienne Millon wrote: > Additionally, starting from version 3.2, there is a "sendmail" > configuration directive that you can set to "/usr/bin/esmtp" to do > this without having to alias esmtp as the system-wide sendmail. The configured 'sendmail' is invok

Bug#723140: rss2email: Support paused feeds in r2e-migrate script

2013-09-16 Thread W. Trevor King
On Mon, Sep 16, 2013 at 09:28:19PM +0200, Denis Laxalde wrote: > def add(url): > return subprocess.call(['r2e', 'add', slugify(url), url]) > > +def pause(index): > +return subprocess.call(['r2e', 'pause', str(index)]) > > def main(): > if new_db_exists(): > @@ -88,10 +90,12 @@ d

Bug#694744: [Be-devel] Heavy documentation dependencies

2012-11-29 Thread W. Trevor King
ebian can package just the user-facing docs. 3. Build the docs without numpydoc A long time ago (on the BE list) you said: On Wed, Feb 23, 2011 at 05:19:42PM +1100, Ben Finney wrote: > "W. Trevor King" writes: > > All the user-directed stuff is fine. Some of the API

Bug#694744: [Be-devel] Debian packaging

2012-11-29 Thread W. Trevor King
On Thu, Nov 29, 2012 at 02:18:59PM -0500, W. Trevor King wrote: > I'll open a new package bug. Done: On Thu, Nov 29, 2012 at 07:33:04PM +, Debian Bug Tracking System wrote: > Thank you for filing a new Bug report with Debian. > ... > 694744: http://bugs.debian.org/cgi-bin/

Bug#694744: New upstream version 1.1.1

2012-11-29 Thread W. Trevor King
Package: bugs-everywhere Version: 0.0.193+bzr.r217-2 Severity: wishlist Tags: upstream Upstream (me) has released a new version [1]. The built HTML docs are in the distribution tarball, so the numpydoc dependency that sank 1.0.0 inclusion [2] should no longer be an issue. Cheers, Trevor [1]: ht

Bug#662960: ssmpt doesn't validate server TLS certificates

2012-03-07 Thread W. Trevor King
e Mon Sep 17 00:00:00 2001 From: W. Trevor King Date: Wed, 7 Mar 2012 10:12:43 -0500 Subject: [PATCH 3/3] Validate the server certificate when using TLS. --- TLS |7 +-- ssmtp.c | 45 + ssmtp.conf.5 |6 ++ 3 files change

Bug#662959: ssmpt uses unnecessary newlines in strings passed to log_event()

2012-03-07 Thread W. Trevor King
=662958). Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy From 246ac1ca5e044547419d46c5c509a37b724484ef Mon Sep 17 00:00:00 2001 From: W. Trevor King Date: Wed, 7 Mar 2012 09:09:51 -0500

Bug#662958: ssmpt doesn't support separate client key/certificate files

2012-03-07 Thread W. Trevor King
Oops, here's the patch. -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy From eaec5d9c556f4752d52c42b6e025b5f4ee4c0343 Mon Sep 17 00:00:00 2001 From: W. Trevor King Date: Wed, 7 Mar 2012

Bug#662958: ssmpt doesn't support separate client key/certificate files

2012-03-07 Thread W. Trevor King
Package: ssmtp Version: 2.64-5 Severity: wishlist Tags: patch The current versions of sSMTP require the client key and certificate in a single file (`TLSCert`) if you're authenticating your client using TLS. Often, keys (secret) and certificates (public) are stored in separate files. The ability

Bug#579361: don't insert spurious blank lines

2011-02-16 Thread W. Trevor King
On 30-Apr-2010, Ben Finney wrote: > AFAIK. It might merely be sloppy coding, but I don't know. This was discussed on the BE list back when I was comming aboard in Nov 2008 [1]. It is, actually, intentional, although I'm not sure if it actually helps. The orginial mapfile formats included separat