bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] Scheme procedure mu-message-copy


From: Chris Hall
Subject: Re: [bug-mailutils] Scheme procedure mu-message-copy
Date: Wed, 06 Jun 2012 03:09:09 -1000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi, Sergey,

I hope you don't mind my sending this directly, since it *is* unsolicited.

Here is my warmup 'use case' , to get a feel for GNU Mailutils, what
I've been working on, and I must say the software you've worked so hard
on has been a *big* help on this.

Use case: I like to read news on my (Android) phone, subcribe to a bunch
of feeds, but all the Android RSS feed readers I've found are too
graphics intensive, suck the battery dry, are slow because of all the
pictures they insist on downloading, limit the articles on hand, etc.,
etc., they just don't seem to be what I need.

On the other hand, Android has the K-9 Mail program which handles
folders just fine, has STARTTLS support,etc.

Then, after some googling, in the Debian repository on my server I find
RSS2Email, a cool little Python script that fetches RSS feed articles
and mails them using the local mailer. (FWIW, I liked and used Python
before I fell in love with Guile).
The articles pretty much always have a link to the original article, and
from K-9 I can tap the link and open it in the browser (And Firefox on
Android has Ad Block, just sayin' ;)

Fast, easy, works for me.

So, *lots* of incoming mails that need to be sorted into folders - GNU
Mailutils, maidag and Guile to the rescue!

Now I'm wondering if there might be a way to use Maidag in LMTP mode for
this, i.e., point RSS2Email at it somehow? Would that be possible? And
also have Maidag sort it into folders?

I've also attached a version of my Maidag delivery script. I've only
used it once so far, but it worked great. I'm thinking it could be
generalized a bit more, plus I need to wrap a 'catch' around

(mu-mailbox-append-message target-mailbox message)

because on 4 (out of 67) messages, it didn't work.

I'm wondering if maybe there is mailbox locking issue? What would happen if 2 
different worker threads (am I guessing right here?) tried to access the same 
mailbox at the same time?  Because the mailbox names in the log file are just 
fine, i.e., I have no idea why this is in syslog otherwise:

Jun  6 11:21:57 kaikala maidag[8600]: ERROR: Throw to key `mailutils-error' 
with args `("mu-m\
ailbox-append-message" "Cannot append message ~A to mailbox ~A" (#<message 
"address@hidden
d.com" "Wed Jun  6 06:21"  56 2546 > #<mailbox 
mbox:///home/chris/mail/mailboxes/RSS/Atlantic\
/mBoX-mSgDaTa (0)>) (4106))'.
Jun  6 11:22:06 kaikala maidag[8810]: ERROR: Throw to key `mailutils-error' 
with args `("mu-m\
ailbox-append-message" "Cannot append message ~A to mailbox ~A" (#<message 
"address@hidden
d.com" "Wed Jun  6 06:22"  27 1276 > #<mailbox 
mbox:///home/chris/mail/mailboxes/RSS/The Regi\
ster/mBoX-mSgDaTa (0)>) (4106))'

I've gotta hand it to you, Sergey: email systems, and *especially* the messages 
that flow through them, are a *huge* challenge: well done!

Sincerely,

Chris


Attachment: maidag-example.scm
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]