# HG changeset patch # User Timo Sirainen # Date 1488915405 18000 # Node ID f149ee35322e45d22d878b9d3c77ad91bd756ca3 # Parent a4f8acdfb3d5c0faa6b62ea675986b2998f81d52 pop3: Set process title before syncing mailbox. The syncing could be taking a long time, so it's useful to have the username in the process title during that. diff -r a4f8acdfb3d5 -r f149ee35322e src/pop3/pop3-client.c --- a/src/pop3/pop3-client.c Wed Mar 08 10:07:37 2017 -0500 +++ b/src/pop3/pop3-client.c Tue Mar 07 14:36:45 2017 -0500 @@ -458,6 +458,9 @@ enum mailbox_flags flags; const char *ident, *errmsg; + /* refresh proctitle before a potentially long-running init_mailbox() */ + pop3_refresh_proctitle(); + flags = MAILBOX_FLAG_POP3_SESSION; if (!client->set->pop3_no_flag_updates) flags |= MAILBOX_FLAG_DROP_RECENT; @@ -484,8 +487,6 @@ "CONNECT\t", my_pid, "\tpop3/", ident, "\n", NULL)); client->anvil_sent = TRUE; } - - pop3_refresh_proctitle(); return 0; }