Re: [kde] kmail getting uppity again...
gene heskett posted on Thu, 08 Mar 2012 23:46:52 -0500 as excerpted: On Thursday, March 08, 2012 11:44:12 PM Duncan did opine: from MSOE, back to 1997 or so. I really should probably spend a couple days going thru the oldest stuff and deleting much of it, and I've done a bit of that, but I could certainly do more. I could probably get it down to ~300 MB or so if I did. But there's always more important, or at least more interesting, stuff to do. Not much spam here, none of it lasting more than 10 minutes after midnight. I seem to suffer from that problem myself, Duncan. Where might this script be found? LOL! Don't we all! [For others that happen to come in in the middle of the conversation, this script refers to a kmail - claws-mail or more precisely maildir to MH-dir format converter...] From memory... the script is on the claws-mail site, to be found listed on the utils page. Note that kmail has used both mbox and maildir over the years, but mbox can be imported from claws itself (file menu), so the only thing the script is needed for is maildir. Meanwhile, let's see how good that memory of the location is... First of all, the claws-mail site. http://www.claws-mail.org/index.php Not directly on topic, but if you've not done so, reading the FAQ and the manual is useful. FWIW, the manual and a smaller FAQ is available on the help menu directly from claws, as well. I'm guessing some of the plugins may be quite useful to you as well, plus the Using Claws Mail with other programs section of the FAQ. Looks like the page I was remembering is actually tools, not scripts, but it lists a collection of a whole host of (mainly) scripts, bash, perl, python... for various things, including address book and mailbox conversion scripts. http://www.claws-mail.org/tools.php?section=downloads The download is a tarball containing the script and a README. I either mis-remembered or they switched it out as it's a perl script, not python. Of course, have the data backed up. And be prepared for a bit of hacking if necessary, but given the sorts of solutions I know you've already hacked up, it shouldn't be too difficult for you. I don't know perl here, and was able to do it. Unfortunately, while I remember having to do a bit of hacking to this script as well as the one mentioned below for addressbook import, the details I was remembering were for the addressbook script, so you'll need to go back to my list mails closer to when I did it to get a description of the hacks I needed for this script. kmail-mailbox2claws-mail.pl Another alternative, that others have used, is to upload your mail to an IMAP server from kmail, then download it into claws mail. One guy reported that he didn't have a pre-made IMAP account to do that with, but he worked around that by installing an IMAP server temporarily, using it to do the conversion, then uninstalling it. Another way is to install another client that can handle both maildir and either mh or mbox, and use it to do the conversion. Finally, there's conversion scripts for both mail and addressbook from thunderbird. I don't know what import facilities thunderbird has, but can't imagine it not dealing with maildir or vcard, so it should be able to import both, and you can then use the existing scripts to import from it. You may also want to try converting addressbooks. There's a csv2addressbook.pl script that mentions kmail, but I think I couldn't figure out how to get akonadi to give me a csv export, so that wouldn't work for me. Instead I used an akonadi export command of some sort at the command line (I don't have akonadi installed now so can't tell you what it was), that gave me a big vcard file with everything in it. Then I used the evolution vcard converter script to convert that to claws- mail format: vcard2xml.py That must have been the python script I remembered. Anyway, there's some minor differences in field names between what the akonadi-exported vcard file used, and what the evolution-conversion-script expected. This one actually required a bit more hacking than the other one, changing the field names appropriately, and THIS is the one I had to fix the shebang on as I can see it says python2.2 and it's python2.7 I have installed here (it might have been 2.6 at the time), but it too worked, with a bit of hacking. The other alternative for the address book is to use claws-mail's own vcard support. However, while I got the addresses to show up here doing that, they were read-only and definitely not as claws-mail integrated as the native format. One final alternative is to simply do the mail import, open saved mails from each of your desired contacts, and use claws' own add sender to addressbook feature. Thus, importing contacts isn't the big deal that importing the mail itself is, since you can simply add to addressbook from the email, if necessary. -- Duncan - List
Re: [kde] kmail getting uppity again...
Am 08.03.2012 21:05, schrieb gene heskett: On Thursday, March 08, 2012 02:57:28 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: On Thursday, March 08, 2012 12:11:17 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: Greetings folks; kmail 1.13.7 from the pclos repos. I joined a forum at Cadsoft, for eagle, their pcb design tool. It copies all forum posts to your subscription address, so I thought it would be nice to make an 'eagle' folder, to reside in the sorted list of folders I now have about 40 of. To save these messages in case I might be able to contribute, and make use of kmail's expiry rules was the main reason, they are 'no reply' messages, containing an html link to that forum thread. AFAIAC, they can be expired in a couple days. But kmail has now decided any new folders MUST be a subfolder of an existing selection again, as when I click on Local Folders, the folder creation stuff is grayed out, disabled. In both the file pulldown and the folders pulldown. Since I have the same version of KMail (on Debian though), I tried to reproduce. Indeed, if Local Folders is selected, the option for creating a new folder in the Folders menu is disabled. However, the respective option in the context menu (AKA right click menu) on Local Folders is enabled and successfully created a top level folder. Cheers, Kevin Error opening /home/gene/Mail/.inbox.directory/eagle; this folder is missing. That one I had nuked previously, with kmail. Next? Does the folder exist? Does it have cur/ new/ and tmp/ sub directories? Anyway, did using the context menu work for you as it did for me? Cheers, Kevin Yes, it created it, in the .inbox folder both times I tried as I tried to create a ../eagle folder the second time, both times it reported a failure, but it was there when the failure msg was click to clear it, but when kmail then did the rescan, it was there in the .inbox/eagle as shown in the folder list, so I nuked it both times, and now, everytime I hit the bottom of the list an it restarts at the top, I have about 5 or 6 error messages, can't find the eagle folder I have to clear before it will actually go show me the next message in the inbox. This is rapidly turning into a PIMA. I would switch to claws but the last time I looked, it did not have an import from kmail function. And my kmail corpus goes back to early 2002, nearly 10 years. That is several gigs worth of messages I do NOT want to leave behind. And again: Why don't you set up a local imap server (dovecot) and put all mails into it? After you did this once you can use what ever mailclient you want without the need to move mails again and again. Martin Thanks for any more guidance folks. Cheers, Gene ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Friday, 2012-03-09, Duncan wrote: You may also want to try converting addressbooks. There's a csv2addressbook.pl script that mentions kmail, but I think I couldn't figure out how to get akonadi to give me a csv export, so that wouldn't work for me. Akonadi is a data access technology, backend stuff. What you are looking for is user interface, front end stuff. If data is accessed through Akonadi, than you'd be looking for a contact processing application with CSV output or export. E.g. KAddressBook. If course the data format of choice[1] for contact data interchange is VCard, so it might make more sense to look for an application capable of that. E.g. also KAddressBook. In either case obviously only necessary when the data is not stored in the target format already. Most common locally stored addressbooks are VCard based (either one file containing multiple contacts or one contact per file in a directory). Cheers, Kevin [1] a CSV row does not have any meaning attached to its columns, therefore export and import stage need to exchange the mapping of column to contact field separately. Often done by offloading that to the user, e.g. requiring the user to perform that mapping manually in an import user interface and/or through mapping files. Nowadays usually only necessary when dealing with simple text tools such as grep, sed or awk. Any high level scripting language has vcard manipulation facilities. -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring signature.asc Description: This is a digitally signed message part. ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
Kevin Krammer posted on Fri, 09 Mar 2012 10:05:05 +0100 as excerpted: If course the data format of choice[1] for contact data interchange is VCard, so it might make more sense to look for an application capable of that. E.g. also KAddressBook. There's an akonadi-something command-line app, however (I think I found it via tab-completion), that has an option to output a vcard file. Maybe it's just akonadiconsole? I know, I wasn't really expecting it to be akonadi* either, but there it was, and it did what it said in the --help output. -- Duncan - List replies preferred. No HTML msgs. Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On 3/9/2012 5:42 AM, gene heskett wrote: -snip- Cheers, Gene gmail + imap support -- moved all my pre-gmail email into folders on gmail's server... never will I lose any email (until google dies anyway.. but hopefully I should have enough notice to get them back off beforehand) -- Chuck Burns The Southern Libertarian (owner/editor) http://www.thesouthernlibertarian.com/ ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Thursday, 2012-03-08, gene heskett wrote: I even used mc to move the empty folder it created as a subdir of the inbox folder to where I wanted it, one subdir level up, but kmail can't see it. You probably moved it into the wrong folder :) If you want yourfolder to appear below Inbox you need to move it to .Inbox.directory For example this mail will on my system go into a folder called kde which is a child of MailingLists which is a child of KDE which is a child of Local Folders. Its path looks like this /home/kevin/Mail/.KDE.directory/.Mailinglists.directory/kde Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring signature.asc Description: This is a digitally signed message part. ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Thursday, 2012-03-08, gene heskett wrote: Greetings folks; kmail 1.13.7 from the pclos repos. I joined a forum at Cadsoft, for eagle, their pcb design tool. It copies all forum posts to your subscription address, so I thought it would be nice to make an 'eagle' folder, to reside in the sorted list of folders I now have about 40 of. To save these messages in case I might be able to contribute, and make use of kmail's expiry rules was the main reason, they are 'no reply' messages, containing an html link to that forum thread. AFAIAC, they can be expired in a couple days. But kmail has now decided any new folders MUST be a subfolder of an existing selection again, as when I click on Local Folders, the folder creation stuff is grayed out, disabled. In both the file pulldown and the folders pulldown. Since I have the same version of KMail (on Debian though), I tried to reproduce. Indeed, if Local Folders is selected, the option for creating a new folder in the Folders menu is disabled. However, the respective option in the context menu (AKA right click menu) on Local Folders is enabled and successfully created a top level folder. Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring signature.asc Description: This is a digitally signed message part. ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Thursday, March 08, 2012 12:11:17 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: Greetings folks; kmail 1.13.7 from the pclos repos. I joined a forum at Cadsoft, for eagle, their pcb design tool. It copies all forum posts to your subscription address, so I thought it would be nice to make an 'eagle' folder, to reside in the sorted list of folders I now have about 40 of. To save these messages in case I might be able to contribute, and make use of kmail's expiry rules was the main reason, they are 'no reply' messages, containing an html link to that forum thread. AFAIAC, they can be expired in a couple days. But kmail has now decided any new folders MUST be a subfolder of an existing selection again, as when I click on Local Folders, the folder creation stuff is grayed out, disabled. In both the file pulldown and the folders pulldown. Since I have the same version of KMail (on Debian though), I tried to reproduce. Indeed, if Local Folders is selected, the option for creating a new folder in the Folders menu is disabled. However, the respective option in the context menu (AKA right click menu) on Local Folders is enabled and successfully created a top level folder. Cheers, Kevin Error opening /home/gene/Mail/.inbox.directory/eagle; this folder is missing. That one I had nuked previously, with kmail. Next? Cheers, Gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) My web page: http://coyoteden.dyndns-free.com:85/gene Oh what wouldn't I give to be spat at in the face... -- a prisoner in Life of Brian ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Thursday, 2012-03-08, gene heskett wrote: On Thursday, March 08, 2012 12:11:17 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: Greetings folks; kmail 1.13.7 from the pclos repos. I joined a forum at Cadsoft, for eagle, their pcb design tool. It copies all forum posts to your subscription address, so I thought it would be nice to make an 'eagle' folder, to reside in the sorted list of folders I now have about 40 of. To save these messages in case I might be able to contribute, and make use of kmail's expiry rules was the main reason, they are 'no reply' messages, containing an html link to that forum thread. AFAIAC, they can be expired in a couple days. But kmail has now decided any new folders MUST be a subfolder of an existing selection again, as when I click on Local Folders, the folder creation stuff is grayed out, disabled. In both the file pulldown and the folders pulldown. Since I have the same version of KMail (on Debian though), I tried to reproduce. Indeed, if Local Folders is selected, the option for creating a new folder in the Folders menu is disabled. However, the respective option in the context menu (AKA right click menu) on Local Folders is enabled and successfully created a top level folder. Cheers, Kevin Error opening /home/gene/Mail/.inbox.directory/eagle; this folder is missing. That one I had nuked previously, with kmail. Next? Does the folder exist? Does it have cur/ new/ and tmp/ sub directories? Anyway, did using the context menu work for you as it did for me? Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring signature.asc Description: This is a digitally signed message part. ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] kmail getting uppity again...
On Thursday, March 08, 2012 02:57:28 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: On Thursday, March 08, 2012 12:11:17 PM Kevin Krammer did opine: On Thursday, 2012-03-08, gene heskett wrote: Greetings folks; kmail 1.13.7 from the pclos repos. I joined a forum at Cadsoft, for eagle, their pcb design tool. It copies all forum posts to your subscription address, so I thought it would be nice to make an 'eagle' folder, to reside in the sorted list of folders I now have about 40 of. To save these messages in case I might be able to contribute, and make use of kmail's expiry rules was the main reason, they are 'no reply' messages, containing an html link to that forum thread. AFAIAC, they can be expired in a couple days. But kmail has now decided any new folders MUST be a subfolder of an existing selection again, as when I click on Local Folders, the folder creation stuff is grayed out, disabled. In both the file pulldown and the folders pulldown. Since I have the same version of KMail (on Debian though), I tried to reproduce. Indeed, if Local Folders is selected, the option for creating a new folder in the Folders menu is disabled. However, the respective option in the context menu (AKA right click menu) on Local Folders is enabled and successfully created a top level folder. Cheers, Kevin Error opening /home/gene/Mail/.inbox.directory/eagle; this folder is missing. That one I had nuked previously, with kmail. Next? Does the folder exist? Does it have cur/ new/ and tmp/ sub directories? Anyway, did using the context menu work for you as it did for me? Cheers, Kevin Yes, it created it, in the .inbox folder both times I tried as I tried to create a ../eagle folder the second time, both times it reported a failure, but it was there when the failure msg was click to clear it, but when kmail then did the rescan, it was there in the .inbox/eagle as shown in the folder list, so I nuked it both times, and now, everytime I hit the bottom of the list an it restarts at the top, I have about 5 or 6 error messages, can't find the eagle folder I have to clear before it will actually go show me the next message in the inbox. This is rapidly turning into a PIMA. I would switch to claws but the last time I looked, it did not have an import from kmail function. And my kmail corpus goes back to early 2002, nearly 10 years. That is several gigs worth of messages I do NOT want to leave behind. Thanks for any more guidance folks. Cheers, Gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) My web page: http://coyoteden.dyndns-free.com:85/gene Youth is such a wonderful thing. What a crime to waste it on children. -- George Bernard Shaw ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.