| | 231 | |
|---|
| | 232 | /* For local maildir accounts, compare their paths, before the folder part. */ |
|---|
| | 233 | if (in->path && org->path && (strcmp (in->protocol, "maildir") == 0)) { |
|---|
| | 234 | gchar *in_path = NULL; |
|---|
| | 235 | gchar *in_pos_hash = NULL; |
|---|
| | 236 | gchar *org_path = NULL; |
|---|
| | 237 | gchar *org_pos_hash = NULL; |
|---|
| | 238 | |
|---|
| | 239 | /* The folders have a # before them: */ |
|---|
| | 240 | /* Copy the paths and set null-termination at the #: */ |
|---|
| | 241 | in_path = g_strdup (in->path); |
|---|
| | 242 | in_pos_hash = strchr (in_path, '#'); |
|---|
| | 243 | if (in_pos_hash) |
|---|
| | 244 | *in_pos_hash = '\0'; |
|---|
| | 245 | |
|---|
| | 246 | org_path = g_strdup (org->path); |
|---|
| | 247 | org_pos_hash = strchr (org_path, '#'); |
|---|
| | 248 | if (org_pos_hash) |
|---|
| | 249 | *org_pos_hash = '\0'; |
|---|
| | 250 | |
|---|
| | 251 | if (strcmp (in_path, org_path) != 0) |
|---|
| | 252 | retval = FALSE; |
|---|
| | 253 | |
|---|
| | 254 | g_free (in_path); |
|---|
| | 255 | g_free (org_path); |
|---|
| | 256 | } |
|---|