Re: OT: Maildir vs. mh folders?

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

 



On 16Oct2020 18:53, Ranjan Maitra <maitra@xxxxxxxxx> wrote:
>> >Thanks very much for this! I will try it out, but it appears to be for individual folders, is that correct? So, I will maybe write a script to call it.
>>
>> Yes. I just wrote a for loop on the command line. Something like:
>>
>>     cd ~/mail
>>     for mhdir in [a-z]*; do (set -x; mh2maildir "$mhdir") || break; done
>
>So, in this code, there is a command called ismhdir -- where does this come from? Is there something missing here? (I think it also shows up in your newer code.)

Oh, there's probably a few of my scripts in that one. They're all 
available from the same URL (go up to the bin/ URL). Or I can ship you a 
tarball or you can clone the repo, whatever you find easy.

>> Yep. But the conversion is pretty trivial. Mutt autodetects the folder
>> type. If a file, mbox. If a dir with tmp,new,cur, a Maildir. Probably MH
>> otherwise.
>>
>> So provided you _make_ an empty Maildir (mkdir $d $d/tmp $d/new $d/cur)
>> mutt will deliver into it correctly - no special modes. You only need to
>> instruct mutt when _it_ creates the mail folder, by setting:
>>
>>     set mbox_type=maildir
>>
>> as your preference for new folders.
>
>My apologies, so my plan is to first get the change from MH to Maildir done and then start fetchmail/procmail to add to those folders after running it through sylfilter (which I package for Fedora) and then fire mutt up after that for reading/responding, etc. Of course, I am not sure if it is worthwhile to use sylfilter anymore given that it was integrated with sylpheed in the training but perhaps I can still keep that. (I will deal with that later.)

You don't need to "switch to mutt" yet. You can still use it as a 
conversion tool :-) Keep the previous MH folder there until you're happy 
the Maildir is a faithful reproduction.

>Yes, I can switch to getmail but I honestly don't know how much a learning curve that would be. Or are you recommending that I use getmail and then mutt on that (instead of procmail)?

No obligation to switch to getmail, I was just describing the tools I 
use for content.

>I see. I do have a lot of conditions set by procmail so would like to try to keep that if possible. Perhaps I will stick to procmail. But does procmail handle Maildir according to any recipe that has to be set: for instance, I clearly do not want the hostname in the filenames.

Stick with procmail until unhappy with it. It will deliver to Maildirs, 
you change the form of the folder name. A trailing slash or something to 
indicate the format. [...digs around...] I think "folder" for mbox, "folder/" 
for Maildir, "folder/." for MH.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux