Skip to content

Conversation

@ClearlyClaire
Copy link

Signed-off-by: Thibaut Girka thib@sitedethib.com

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
@wking
Copy link
Owner

wking commented Sep 16, 2013

On Mon, Sep 16, 2013 at 11:22:38AM -0700, ThibG wrote:

  • Add support for Maildir

This looks pretty good, although it's hard for me to imagine a system
where a sendmail clone doesn't exist to handle local delivery. Can
you add a few words to the commit message motivating this vs. the
existing mail-sending protocols?

If you have good motivation, here are my comments on the patch itself:

I don't see the point of distinguishing between maildir-path and
maildir-mailbox if you're just going to join the paths. Why not have
a pre-joined maildir-mailbox? Is it for easier per-feed overrides?
If so, a note in the commit message would be useful. I'd also prefer
you used get_folder and friends 1 instead of os.path.join(). That's
what they're there for after all. You'll probably also want to handle
the NoSuchMailboxError case with a call to add_folder 2.

@ClearlyClaire
Copy link
Author

Well, using sendmail would still imply doing some filtering magic to store the message in the appropriate place. Furthermore, you may want to use completely separate maildirs for some reason (eg: ~/News).

Yes, maildir-path and maildir-mailbox are here to provide easier per-feed overrides.

Good point about get_folder and add_folder, but they don't seem to follow the same conventions offlineimap and mutt use (mailbox.Maildir seems to require folders to start with a “.”)... I'll investigate that...

@emillon
Copy link

emillon commented Sep 26, 2013

FYI, I use rss2email to deliver mails to a local Maildir. I use esmtp as my sendmail (it only delivers local mail), and it's a matter of only a few lines:

esmtprc

mda "/usr/bin/procmail -d %T"

procmailrc

:0
* ^User-Agent: rss2email
rss/

That's filtering magic, but a very small one :)

@JNRowe
Copy link

JNRowe commented Oct 16, 2013

I'd also find this useful when I upgrade from 2.71, because I'm using a custom send function to deliver mails to a maildir with 2.71. I don't currently have any tool installed to deliver local mails, as I have no other use for one.

To be fair it wouldn't be all that much effort to write a little script to handle delivery for me if this isn't merged.

@andresmrm
Copy link

I would apreciate this merge too. I was almost reimplementing it myself when I saw this issue...

I use msmtp here and, AFAIK, it doesn't deliver local mail.
Esmtp, pointed by Emilion, seems to be no loger maintained:
http://esmtp.sourceforge.net/
I am not using procmail neither...

I will do the changes you suggested to ThibG's commit.

@andresmrm
Copy link

I don't know if I did it right, but submited two patches to ThibG... I don't know how to change 2 files in one pull request via Github interface. =P
andresmrm@170ea39
andresmrm@7cd70b2

I thik he need to accept them, and re-pull request to you... Or you may acept his old pull and then copy my changes. Or I can resend the complete changes to you... =P

@Ekleog
Copy link

Ekleog commented Apr 15, 2019

@ThibG This has been merged to https://github.com/rss2email/rss2email, new home of rss2email following maintainer changes ; care to close here? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants