Solved Docker getmail image to fetch external mailaccounts like e.g. gmail

Currently reading
Solved Docker getmail image to fetch external mailaccounts like e.g. gmail

280
79
NAS
DS920+, DS916+, DS211j
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
Hi,
I have installed this image to fetch external email accounts e.g. gmail and/or aol via getmail

So Far it is working and my external emails are fetch and delivered to the docker/getmail/maildir/new
Now I would like to move those mails to my Mailplus Maildir folder of the users account.

I have already tried testing
Code:
cp "/volume1/docker/getmail/maildir/new/1600959045.M488492P33Q0Re82a9139b48bfbd2.getmail" "/volume1/MailPlus/@local/1026/1026/Maildir/new"
But this is only for copying one mail at the time. I need to be able to move all the new mails that arrive in the "new" folder.

Anyone know how to accomplish this?
 
Figured it out, this worked for me to move the messages and set the proper permission
Code:
#!/bin/bash
#
chown {user} /volume1/docker/getmail/maildir/new/*
chgrp {group} /volume1/docker/getmail/maildir/new/*
chmod 771 /volume1/docker/getmail/maildir/new/*
mv -n /volume1/docker/getmail/maildir/new/* /volume1/MailPlus/@local/1026/1026/Maildir/new
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
390
Good to hear. Deluge has not been updated for almost two years now as an app, nevertheless. But it gives...
Replies
12
Views
960
  • Question
Open an issue on that GitHub page. The developers will be glad to assist. OP has posted two threads on...
Replies
5
Views
963
I'm happy with email notifications but in v0.3.3 of dockcheck the author added apprise notifications...
Replies
4
Views
1,042
I am also trying to setup a Z-wave USB dongle and am getting stuck after following the same steps as...
Replies
1
Views
1,031
How did you create the Portainer container in first place? As in exact docker run commands or in case...
Replies
7
Views
1,241
Looks like I triggered you somehow with my post: it was not my intention. I have no idea whether bash or...
Replies
4
Views
1,534

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top