|
|
@ -250,6 +250,7 @@ write_imap_server( FILE *fp, config_t *cfg ) |
|
|
|
if (sscanf( cfg->host, "%d.%d.%d.%d", &a1, &a2, &a3, &a4 ) == 4) |
|
|
|
if (sscanf( cfg->host, "%d.%d.%d.%d", &a1, &a2, &a3, &a4 ) == 4) |
|
|
|
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host ); |
|
|
|
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host ); |
|
|
|
else { |
|
|
|
else { |
|
|
|
|
|
|
|
/* XXX this does not avoid clashes. add port? */ |
|
|
|
p = strrchr( cfg->host, '.' ); |
|
|
|
p = strrchr( cfg->host, '.' ); |
|
|
|
if (!p) |
|
|
|
if (!p) |
|
|
|
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host ); |
|
|
|
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host ); |
|
|
@ -375,7 +376,8 @@ write_config( int fd ) |
|
|
|
|
|
|
|
|
|
|
|
fprintf( fp, "SyncState *\n\n" ); |
|
|
|
fprintf( fp, "SyncState *\n\n" ); |
|
|
|
if (local_home || o2o) |
|
|
|
if (local_home || o2o) |
|
|
|
fprintf( fp, "MaildirStore local\nPath \"%s/\"\nAltMap %s\n\n", maildir, tb( altmap > 0 ) ); |
|
|
|
fprintf( fp, "MaildirStore local\nPath \"%s/\"\nInbox \"%s/INBOX\"\nAltMap %s\n\n", |
|
|
|
|
|
|
|
maildir, maildir, tb( altmap > 0 ) ); |
|
|
|
if (local_root) |
|
|
|
if (local_root) |
|
|
|
fprintf( fp, "MaildirStore local_root\nPath /\nAltMap %s\n\n", tb( altmap > 0 ) ); |
|
|
|
fprintf( fp, "MaildirStore local_root\nPath /\nAltMap %s\n\n", tb( altmap > 0 ) ); |
|
|
|
if (o2o) { |
|
|
|
if (o2o) { |
|
|
|