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

Cannot use hyphens in useHeader for SyncJob #6217

Open
5 tasks done
austonpramodh opened this issue Dec 19, 2024 · 0 comments
Open
5 tasks done

Cannot use hyphens in useHeader for SyncJob #6217

austonpramodh opened this issue Dec 19, 2024 · 0 comments
Labels

Comments

@austonpramodh
Copy link

Contribution guidelines

I've found a bug and checked that ...

  • ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
  • ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • ... I have understood that answers are voluntary and community-driven, and not commercial support.
  • ... I have verified that my issue has not been already answered in the past. I also checked previous issues.

Description

Cannot use hyphens in useHeader for SyncJob

Logs:

php-fpm-mailcow-1  | 172.22.1.14 -  19/Dec/2024:01:55:51 -0600 "GET /json_api.php" 200
php-fpm-mailcow-1  | fd4d:6169:6c63:6f77::13 -  19/Dec/2024:01:55:56 -0600 "HEAD /forwardinghosts.php" 200
php-fpm-mailcow-1  | 172.22.1.14 -  19/Dec/2024:01:55:56 -0600 "GET /forwardinghosts.php" 200
php-fpm-mailcow-1  | fd4d:6169:6c63:6f77::13 -  19/Dec/2024:01:55:57 -0600 "POST /json_api.php" 200
php-fpm-mailcow-1  | 172.22.1.14 -  19/Dec/2024:01:55:57 -0600 "GET /edit.php" 200
php-fpm-mailcow-1  | fd4d:6169:6c63:6f77::13 -  19/Dec/2024:01:55:58 -0600 "GET /json_api.php" 200
php-fpm-mailcow-1  | 172.22.1.14 -  19/Dec/2024:01:56:03 -0600 "POST /json_api.php" 200
php-fpm-mailcow-1  | fd4d:6169:6c63:6f77::13 -  19/Dec/2024:01:56:04 -0600 "GET /edit.php" 200
php-fpm-mailcow-1  | 172.22.1.14 -  19/Dec/2024:01:56:04 -0600 "GET /json_api.php" 200
php-fpm-mailcow-1  | fd4d:6169:6c63:6f77::13 -  19/Dec/2024:01:56:16 -0600 "HEAD /settings.php" 304

Steps to reproduce:

1. Create a Sync Job
2. add in `Custom parameters` -> `--useheader='X-Gmail-Received'`

Which branch are you using?

master

Which architecture are you using?

x86

Operating System:

Ubuntu 22.04 LTS

Server/VM specifications:

16GB, 4 cores

Is Apparmor, SELinux or similar active?

yes

Virtualization technology:

N/A

Docker version:

27.4

docker-compose version or docker compose version:

v2.31.0

mailcow version:

2024-11b

Reverse proxy:

Caddy

Logs of git diff:

diff --git a/data/web/inc/vars.inc.php b/data/web/inc/vars.inc.php
index d3165b8af..ef72831b6 100644
--- a/data/web/inc/vars.inc.php
+++ b/data/web/inc/vars.inc.php
@@ -366,7 +366,10 @@ $IMAPSYNC_OPTIONS = array(
     'truncmess',  
     'usecache', 
     'useheader',  
-    'useuid'    
+    'useuid',
+    // Additional Custom Vars
+    'maxbytespersecond',
+    
   ),
   'blacklist' => array(
     'skipmess',


### Logs of iptables -L -vn:

```plain text
N/A

Logs of ip6tables -L -vn:

N/A

Logs of iptables -L -vn -t nat:

N/A

Logs of ip6tables -L -vn -t nat:

N/A

DNS check:

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant