Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IMAP timeout #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .mbsyncrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ IMAPAccount {mailbox_name}
Host {host_name}
Port {port}
User {remote_username}
Timeout {timeout}
# For simplicity, this is how to read the password from another file.
# For better security you should use GPG https://gnupg.org/
Pass {remote_password}
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.1"
version: "3.1"
services:
mbsync:
image: thehelpfulidiot/mbsync:latest
Expand All @@ -14,3 +14,4 @@ services:
- sslversions=TLSv1.2
- mailbox_name=fastmail
- pipeline_depth=1024 #default=1024 but may need to be changed for some mail providers (https://manpages.debian.org/unstable/isync/mbsync.1.en.html#PipelineDepth)
- timeout=20
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ FROM ubuntu:latest
#yes, no, or required
#ENV server_address="imap.example.com"
ENV pipeline_depth="1024"
ENV timeout="20"

RUN apt update && apt upgrade -y
RUN apt install -y isync
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ sed -i "s/{remote_username}/${remote_username}/g" /etc/.mbsyncrc
sed -i "s/{remote_password}/${remote_password}/g" /etc/.mbsyncrc
sed -i "s/{ssltype}/${ssltype}/g" /etc/.mbsyncrc
sed -i "s/{sslversions}/${sslversions}/g" /etc/.mbsyncrc
sed -i "s/{mailbox_name}/${mailbox_name}/g" /etc/.mbsyncrc
sed -i "s/{timeout}/${timeout}/g" /etc/.mbsyncrc
sudo -u mbsync mbsync -Va -c /etc/.mbsyncrc