Skip to content

Demo application which simply "forwards" messages from your databox to your Gmail.

Notifications You must be signed in to change notification settings

czgov/isds-gmail-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISDS Gmail Example

Demo application which simply "forwards" messages from your databox to your Gmail.

It will poll for new messages from "Informační Systém Datových Schránek" (shortcut ISDS) and send every received message to e-mail address you specify as recipient.

Demo Application overview

Getting Access to ISDS

See section getting access of underlying Camel ISDS component.

Building this Application

git clone https://github.com/czgov/isds-gmail-example.git

cd isds-gmail-example

mvn clean install

Installation on JBoss Fuse

You can download JBoss Fuse from https://developers.redhat.com/products/fuse/overview/

Currently there is bug in underlying library which affects deployment on Apache Karaf 4.x.

  1. unzip and start JBoss Fuse 6.3
cd $FUSE_HOME
bin/fuse
  1. instal camel-isds component
# download features.xml from maven central
JBossFuse:karaf@root> features:addurl mvn:com.github.czgov/camel-isds/0.4.0/xml/features

# download jars and install into Fuse
JBossFuse:karaf@root> features:install camel-isds

# optionally verify features are installed
JBossFuse:karaf@root> features:list | grep isds
[installed  ] [1.1.2                ] isds                                          javaisds-1.1.2                         
[installed  ] [0.4.0                ] camel-isds                                    camel-isds-0.4.0   
  1. put following configuration into $FUSE_HOME/etc/isds.mail.cfg:
# test for testing/staging environment of isds 
# - this is where you can request test account
# prod 
# - for production environment you need to obtain your PERSONAL data box form Czech POINT or Czech Post
isds.env = test

# your login and password for isds
isds.login = TYPE_YOUR_OWN_LOGIN_HERE
isds.password = TYPE_YOUR_OWN_PASSWORD_HERE

# how often should we pull data? 10s, 3m, 1h ?
isds.delay = 10s

gmail.login = YOU@gmail.com
gmail.recipient = SOMEBODY@gmail.com
gmail.password = YOUR_PASSWORD
  1. install required camel components
JBossFuse:karaf@root> features:install camel-mail camel-mustache
  1. install and start example application fuse
JBossFuse:karaf@root> osgi:install -s mvn:com.github.czgov/isds-gmail-example/1.0.0-SNAPSHOT
Bundle ID: 298

About

Demo application which simply "forwards" messages from your databox to your Gmail.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published