[opensuse] [11.2] Howto export Maildir Inbox sub-folder list?
Hi, OK, first up I know 11.2 is out of date. tell me something I don't know. I have made a backup of my /home which happens to also include the Maildir folder containing email in a number(circa 300) of folders under the Inbox. I am in the process of making a creating a procmailrc file and would to use the name of the folders as they are stipulated in MailDir as opposed to having to browse to each folder to get its exact name syntax. How can I obtain a text file containing an alphabetical listing of ALL the folders under Maildir? My MUA is Tbird 13.0.1 I have searched the web but not found anything specific so assume there must be a cli command to query the Maildir folder and write a list of the included folders to a text file. Help and pointers appreciated, even to the opensuse archive :) Regards Hylton -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 26.12.2014 um 16:05 schrieb Hylton Conacher (ZR1HPC):
Hi,
OK, first up I know 11.2 is out of date. tell me something I don't know.
I have made a backup of my /home which happens to also include the Maildir folder containing email in a number(circa 300) of folders under the Inbox. I am in the process of making a creating a procmailrc file and would to use the name of the folders as they are stipulated in MailDir as opposed to having to browse to each folder to get its exact name syntax.
How can I obtain a text file containing an alphabetical listing of ALL the folders under Maildir?
My MUA is Tbird 13.0.1
I have searched the web but not found anything specific so assume there must be a cli command to query the Maildir folder and write a list of the included folders to a text file.
Help and pointers appreciated, even to the opensuse archive :)
Try: find $HOME/MailDir -type d -print | sort $HOME expands to your home folder. -type d matches only folders -print prints the absolute path. | sort pipes the result through "sort" to get an alphabetical list Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Aaron, On 26/12/14 18:45, Aaron Digulla wrote:
Am 26.12.2014 um 16:05 schrieb Hylton Conacher (ZR1HPC):
Hi,
OK, first up I know 11.2 is out of date. tell me something I don't know.
I have made a backup of my /home which happens to also include the Maildir folder containing email in a number(circa 300) of folders under the Inbox. I am in the process of making a creating a procmailrc file and would to use the name of the folders as they are stipulated in MailDir as opposed to having to browse to each folder to get its exact name syntax.
How can I obtain a text file containing an alphabetical listing of ALL the folders under Maildir?
My MUA is Tbird 13.0.1
I have searched the web but not found anything specific so assume there must be a cli command to query the Maildir folder and write a list of the included folders to a text file.
Help and pointers appreciated, even to the opensuse archive :)
Try:
find $HOME/MailDir -type d -print | sort
With your input my command of :~> find $HOME/Maildir -type d -print | sort > /home/hylton/maillistdir worked almost perfectly. There will be a far amount of editing to remove certain folders i.e. /new, /cur, /tmp and /courierimapkeywords , but it is a start. :) **snip** /home/hylton/Maildir/.INBOX.A-F.Astro /home/hylton/Maildir/.INBOX.A-F.Astro/courierimapkeywords /home/hylton/Maildir/.INBOX.A-F.Astro/cur /home/hylton/Maildir/.INBOX.A-F.Astro/new /home/hylton/Maildir/.INBOX.A-F.Astro/tmp Tnx -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Montag, 29. Dezember 2014 08:58 CET, "Hylton Conacher (ZR1HPC)"
Try:
find $HOME/MailDir -type d -print | sort
With your input my command of :~> find $HOME/Maildir -type d -print | sort > /home/hylton/maillistdir
worked almost perfectly. There will be a far amount of editing to remove certain folders i.e. /new, /cur, /tmp and /courierimapkeywords , but it is a start. :)
**snip** /home/hylton/Maildir/.INBOX.A-F.Astro /home/hylton/Maildir/.INBOX.A-F.Astro/courierimapkeywords /home/hylton/Maildir/.INBOX.A-F.Astro/cur /home/hylton/Maildir/.INBOX.A-F.Astro/new /home/hylton/Maildir/.INBOX.A-F.Astro/tmp
find has thousands of options. To exclude some folders, see: http://www.liamdelahunty.com/tips/linux_find_exclude_multiple_directories.ph... http://askubuntu.com/questions/206277/find-files-in-linux-and-exclude-specif... http://stackoverflow.com/questions/4210042/exclude-directory-from-find-comma... Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-12-29 08:58, Hylton Conacher (ZR1HPC) wrote:
worked almost perfectly. There will be a far amount of editing to remove certain folders i.e. /new, /cur, /tmp and /courierimapkeywords , but it is a start.
So, you are using courier? Then it is courier who stores emails, not Thunderbird. You can then look at tools such as "imapsync", or similar: imapsync --dry --justfolders \ --host1 imap.src.fr --user1 buddy --password1 secret1 \ --host2 imap.dest.fr --user2 max --password2 secret2 The man page lists other tools: imap_tools : http://www.athensfbc.com/imap_tools offlineimap : https://github.com/nicolas33/offlineimap mbsync : http://isync.sourceforge.net/ mailsync : http://mailsync.sourceforge.net/ mailutil : http://www.washington.edu/imap/ part of the UW IMAP tookit. imaprepl : http://www.bl0rg.net/software/ http://freecode.com/projects/imap-repl/ imapcopy : http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html migrationtool : http://sourceforge.net/projects/migrationtool/ imapmigrate : http://sourceforge.net/projects/cyrus-utils/ wonko_imapsync: http://wonko.com/article/554 see also file W/tools/wonko_ruby_imapsync exchange-away : http://exchange-away.sourceforge.net/ pop2imap : http://www.linux-france.org/prj/pop2imap/ -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2014-12-26 16:05, Hylton Conacher (ZR1HPC) wrote:
How can I obtain a text file containing an alphabetical listing of ALL the folders under Maildir?
My MUA is Tbird 13.0.1
Are you sure? Thunderbird uses mbox, not maildir. If you are indeed using both, then you must also be using something else, like a local imap server. In that case, there are migration tools. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (3)
-
Aaron Digulla
-
Carlos E. R.
-
Hylton Conacher (ZR1HPC)