Commit 9594814a 9594814a3075a29ee1b52cf4f407d79b448b4fb1 by Sergey Poznyakoff

(main): Remove trailing colon from the component name.

1 parent cd4aab04
...@@ -113,6 +113,7 @@ main (int argc, char **argv) ...@@ -113,6 +113,7 @@ main (int argc, char **argv)
113 int index; 113 int index;
114 mailbox_t mbox; 114 mailbox_t mbox;
115 mh_msgset_t msgset; 115 mh_msgset_t msgset;
116 size_t len;
116 117
117 mu_init_nls (); 118 mu_init_nls ();
118 119
...@@ -134,6 +135,10 @@ main (int argc, char **argv) ...@@ -134,6 +135,10 @@ main (int argc, char **argv)
134 if (!anno_text && !anno_date) 135 if (!anno_text && !anno_date)
135 exit (0); 136 exit (0);
136 137
138 len = strlen (component);
139 if (len > 0 && component[len-1] == ':')
140 component[len-1] = 0;
141
137 argc -= index; 142 argc -= index;
138 argv += index; 143 argv += index;
139 144
......