38 |
#include <mailutils/observer.h> |
#include <mailutils/observer.h> |
39 |
#include <mailutils/registrar.h> |
#include <mailutils/registrar.h> |
40 |
#include <mailutils/stream.h> |
#include <mailutils/stream.h> |
41 |
|
#include <mailutils/url.h> |
42 |
|
|
43 |
static char* show_field; |
static char* show_field; |
44 |
static int show_to; |
static int show_to; |
349 |
|
|
350 |
if (status != 0) |
if (status != 0) |
351 |
{ |
{ |
352 |
fprintf (stderr, "could not open mailbox <%s>: %s\n", |
url_t url = NULL; |
353 |
mailbox_name ? mailbox_name : "default", |
|
354 |
mu_errstring(status)); |
mailbox_get_url (mbox, &url); |
355 |
|
if (status == ENOENT) |
356 |
|
status = 2; |
357 |
|
else |
358 |
|
fprintf (stderr, "could not open mailbox %s: %s\n", |
359 |
|
url_to_string (url), |
360 |
|
mu_errstring(status)); |
361 |
|
|
362 |
goto cleanup; |
goto cleanup; |
363 |
} |
} |
364 |
|
|
374 |
|
|
375 |
if (status != 0) |
if (status != 0) |
376 |
{ |
{ |
377 |
|
url_t url = NULL; |
378 |
|
|
379 |
|
mailbox_get_url (mbox, &url); |
380 |
fprintf (stderr, "could not scan mailbox <%s>: %s\n", |
fprintf (stderr, "could not scan mailbox <%s>: %s\n", |
381 |
mailbox_name ? mailbox_name : "default", |
url_to_string (url), |
382 |
mu_errstring(status)); |
mu_errstring(status)); |
383 |
goto cleanup; |
goto cleanup; |
384 |
} |
} |
385 |
|
|