On Mon 20, Jul'09 at  1:02 PM -0600, lee wrote:
Oh. I was trying the script from the command line just to see what it
would do, and it didn't produce any output. It seems the script fills
a variable it uses. I'm wondering how mutt knows that it needs to take
its information from this variable.

Hmm, when I call the script here from the command line, I get an output like "+mailbox1 +mailbox2 +mailbox3".

Sorry, I didn't mean to complain. Don't get me wrong, I was only
trying to explain what a script would need to do.

Maybe I should try to write one, could be fun.

Didn't think you were complaining. I was just saying that ultimately it was for my purposes. Your purposes are obviously different, so go at it. Python is not hard. And all you are ultimately doing in this script, or a bash script, etc., is doing a directory listing and filtering it for the kinds of results you want.

Yeah --- but it's only that I have an old mbox file or two around from
before I switched to maildir. The first MUA I tried on Linux was pine
... I think I also tried elm, but I wasn't happy with them. Then I
found out that there's mutt. That must have been around 1993--1995.

A script could be modified to look for both. Or you could convert your mbox files to maildir.

Hm. Does it really matter? When you transfer the mail to IMAP, how do
you create the folders on the IMAP server?

If I wanted to run an IMAP server on my computer, so my maildirs were accessible to other mail clients (say a GUI client that couldn't read maildir), then I need to make sure my mail folder can be used directly with the IMAP server, serving those files directly.

Thanks! But I don't know python --- I might try where I get to with a
bash script, maybe using find ... But now that I have the list, I
could try to keep them up to date.

Yes I think a bash + find and a couple other embellishments would work. I'm comfortable with Python so that's what I did it with.

Reply via email to