LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2004, 08:15 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Calendar files in iPod (Kontact or KOrganiser)


I have an iPod working successfully...
except that whenevr I export a calendar with Kontact,
I can only see one item. In a howto on how to do it from
Outlook, one ends up splitting all the individual points into
single files. How do I get my caendar on my iPod?

Thanks in advance,
-Riddick
 
Old 01-20-2005, 09:55 AM   #2
kshaffer
Member
 
Registered: May 2004
Location: Chicago, IL
Distribution: SuSE Linux Professional 9.1
Posts: 50

Rep: Reputation: 15
I discovered the same problem exporting my Kontact calendar to my ipod. I googled it and found that the problem was the blank lines that Kontact puts in the ics/vcs file between calendar items. If you eliminate these blank lines, it will work. To quickly eliminate these blank lines, I use sed (streaming editor, an old unix tool). Open a terminal in the directory containing your exported calendar, and use the following command (assuming your exported calendar is "icalout.ics"):

Code:
sed '/^$/d' icalout.ics | sed 'w ./icalout.ics'
This will overwrite your exported calendar with one that the ipod can read properly. To create a new file, replace the second "icalout.ics" with a different name, and it will create a new file. You can then copy it to your ipod, and it should work. You can also put the path of the ipod calendar folder in the second part of the command, and it will write directly to the ipod. I use the above command and then copy the output to the ipod manually, so I have a backup copy of the data on my computer as well.


However, you will probably run into a second issue with your Kontact calendar. For some reason, the ipod (or maybe it's just a bug in mine) truncates large calendar files (and plain text files in the "notes" folder) to 12k. This means a large calendar must be split into multiple files after running the sed script. I am working on a perl script that will take care of both this issue and the blank line issue at the same time, and will post it here when I have a working script. Until then, cut and paste in a text editor works fine for me. Just put all the small calendar files in the calendar directory together, and it will look like one big calendar on the ipod. Hope this helps.

Kris
 
Old 01-31-2005, 11:59 AM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Excellent! That's really amazing!!!
this should get a lot of publicity here.


How would I trunkate a file?


Thanks a million already
Riddick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE - Kontact (Calendar) dutch1918 Linux - Software 1 08-06-2005 08:45 PM
copying ipod files bvav22 Linux - Software 2 06-14-2005 06:07 PM
ipod/ipod shuffle woes (lack of permissions to edit files) Lechium Linux - Software 1 04-13-2005 04:14 PM
ipod detected and added by kudzu but no files in /mnt/ipod gtan Linux - Hardware 5 08-31-2004 10:19 AM
prompt based calendar program? Calendar? thebeaglebeagle Linux - Software 0 09-15-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration