Is there a way to import Outlook "Public Folders" into Confluence as pages?

We have over 1000 knowledgebase articles in Outlook public folders that I would like to import into Confluence as pages. I can export as CSV, RTF, etc, but can't figure out how to import those files into Confluence more than one at a time.


2 answers

1 accepted

Confluence Command Line Interface should help :). Use --action addPage. It will not help with the formatting though.

Thanks Bob. I am looking through the information for the Interface and having trouble figuring out how to specify the source directory for the addPage action.

--file is the parameter you need to specify. You will need to script it to get all files in a directory for instance. Another option is: --action loadFiles which will work over a directory automatically.

I must be doing something wrong. I was able to add the files as attachments using --action loadFiles, but not create pages from them. I will try converting to HTML first as this was with RTF files.

mime type of text/html or text/plain will get get pages. Extensions like .txt for instance will be added as pages.

It looks like the conversion tool is setting the mime type in a non-standard manner. It can be read by Firefox, but none of the content is added to the pages that are created. Is there an example of this syntax anywhere? I could just have something wrong.

They are all .html I will try converting to .txt to see if it helps.

What are the extensions on the files? It is likely you need to rename them to txt for instance.

Create an issue at and attach a couple of example files (RTF and HTML).

I thought I posted this comment earlier, but I don't see it now. Please create an issue and attach a couple of examples (HTML and text) and I will have a look. Normally you want text if possible as HTML gets wrapped in a HTML tag so it displays, but not good for edit.

The command line is adding the files as <directory name> - <Title>.txt with nothing in the content. I am using:

confluence --space "Knowledgebase" --action loadFiles --file "d:\test"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

259 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you