basic cleanup (unused globals, empty lines, missing global..)
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Move functions to ManageAttachments subs...
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Split db queries to their own function.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
move more db queries to subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
let's use existing code :)
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
docs
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
let's not forget these..
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Merge pull request #295 from eurich/manage_attachments

Manage attachments refactoring