若要從先前使用 csexport 公用程式儲存的檔案匯入行事曆資料,請使用 csimport。匯入檔案的檔案副檔名 (.ics 或 .xml) 指示該檔案的儲存格式。
例如,從以 iCalendar (text/calendar MIME) 格式儲存的檔案 jsmith.ics 將行事曆資料匯入行事曆 ID (calid) jsmithcal:
csimport -c jsmithcal calendar jsmith.ics
從以 XML (text/xml MIME) 格式儲存的名為 jsmith.xml 的檔案將資料匯入行事曆 jsmithcal:
csimport -c jsmithcal calendar jsmith.xml