On 2018/05/11 13:54, Jeremie Courreges-Anglas wrote:
> On Wed, May 09 2018, Stuart Henderson <s...@spacehopper.org> wrote:
> > On 2018/05/09 08:34, Jeremie Courreges-Anglas wrote:
> >> On Sun, May 06 2018, Kaashif Hymabaccus <kaas...@kaashif.co.uk> wrote:
> >> > On Mon, Apr 30, 2018 at 05:51:31PM +0200, Solene Rapenne wrote:
> >> >> 
> >> >> a TEST_DEPENDS is needed here
> >> >> 
> >> >> 
> >> >> A few changes are needed in pkg/PLIST too
> >> >> 
> >> >> - remove share/doc/rss2email3/README, because the README from pkg/README
> >> >>   will be automatically put there-> share/doc/pkg-readmes/${FULLPKGNAME}
> >> >> - ${MODPY_COMMENT} should be used for directories containing 
> >> >> ${MODPY_PYCACHE}
> >
> > That's not really needed here, it's python3+ only.
> >
> >> >
> >> > Made these changes. Tarball attached.
> >> 
> >> The port looks good to me, the transition path makes sense I guess...
> >> 
> >> Two questions:
> >> 
> >> 1. This proposal embeds "3" in the port directory name and the PKGNAME,
> >>   what is supposed to happen with rss2email-4.0? A new mail/rss2email4
> >>   port? :)
> >
> > Has anyone figured out the process needed to move from aaronsw (RIP)'s
> > rss2email code that we have in ports now to this version? There was a
> > comment earlier that having the two in tree together made this easier
> > but no indication how. It would seem sensible to just have a one-time
> > bump to move across and avoid complexity.
> 
> I would prefer this approach too.  I thought you were an rss2email user.
> Did you try the instructions in pkg/README?

Aargh I missed that :)

So with a replacement, README is too late, but we can add to current.html
and upgrade notes. Something like this should work..

- Make a note of the default email address (r2e list | grep ^default)
- Export the list of feeds (r2e opmlexport > r2e.opml)
- Send any updates to feeds with the old version (r2e run)
- Update the package
- Create a new database (r2e new)
- Set the default email (r2e email "em...@example.com")
- Import the list of feeds (r2e opmlimport < r2e.opml)
- Ignore old updates (r2e run --no-send), or if you don't mind duplicates
and want to be sure you didn't miss any, re-send everything (r2e run).

Then I hit a runtime problem though...

$ r2e run
sax parsing error: <unknown>:104:121: undefined entity: feed-1 
(http://www.undeadly.org/cgi?action=rss -> s...@spacehopper.org)
Traceback (most recent call last):
  File "/usr/local/bin/r2e", line 5, in <module>
    rss2email.main.run()
  File "/usr/local/lib/python3.6/site-packages/rss2email/main.py", line 163, in 
run
    args.func(feeds=feeds, args=args)
  File "/usr/local/lib/python3.6/site-packages/rss2email/command.py", line 62, 
in run
    feed.run(send=args.send)
  File "/usr/local/lib/python3.6/site-packages/rss2email/feed.py", line 838, in 
run
    for (guid, id_, sender, message) in self._process(parsed):
  File "/usr/local/lib/python3.6/site-packages/rss2email/feed.py", line 357, in 
_process
    processed = self._process_entry(parsed=parsed, entry=entry)
  File "/usr/local/lib/python3.6/site-packages/rss2email/feed.py", line 470, in 
_process_entry
    for k,v in extra_headers.items():  # remove empty tags, etc.
RuntimeError: OrderedDict mutated during iteration

> There's also
> https://github.com/rss2email/rss2email/commit/375404478410e12fd497d4f11bf7c7050e4eb907
> which I find "funny".  Probably not many users rely on SSL/TLS.

Probably not for smtp..

Reply via email to