Fixes #343 missing "Update Attachment" when reaching "maxattachments"-se...

...tting

For the feature branch