about summary refs log tree commit diff stats
path: root/widgets/getpasswd.go
diff options
context:
space:
mode:
authorARaspiK <araspik@protonmail.com>2020-08-18 20:27:23 +0000
committerReto Brunner <reto@labrat.space>2020-08-19 11:38:57 +0200
commitfe1cabb077cf6c6cb3de122b3f5532acbeba8c85 (patch)
tree6f57a28a507c500df82f991cefd67910eca973f0 /widgets/getpasswd.go
parentf4dc7e1f746582d42462ec56347dd354756203b0 (diff)
downloadaerc-fe1cabb077cf6c6cb3de122b3f5532acbeba8c85.tar.gz
Add support for :rmdir
The `:rmdir` command removes the current directory (`-f` is required if
the directory is not empty).

This is not supported on the notmuch backend.

An issue with the maildir backend is that some sync programs (e.g.
offlineimap) may recover the directory after it is deleted.  They need
to specifically be configured to accept deletions, or special commands
need to be executed (e.g. `offlineimap --delete-folder`) to properly
delete folders.

A danger of using this on the IMAP backend is that it is possible for a
new message to be added to the directory and for aerc to not show it
immediately (due to a slow connection) - using `:rmdir` at this moment
(with `-f` if the directory already contains messages) would delete the
directory and the new message that just arrived (and all other
contents).  This is documented in aerc(1) so that users are aware of
possible risks.
Diffstat (limited to 'widgets/getpasswd.go')
0 files changed, 0 insertions, 0 deletions
35' href='#n135'>135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212