Skip to content

Commit d278613

Browse files
sirainencmouse
authored andcommitted
Add "doveadm mail fs" commands
1 parent 28de862 commit d278613

File tree

2 files changed

+182
-0
lines changed

2 files changed

+182
-0
lines changed

data/doveadm.js

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,183 @@ Applicable to [[link,mdbox]] and [[link,sdbox]] mailbox formats only.
11861186
text: `Write a test message to the log files.`,
11871187
},
11881188

1189+
'mail fs copy': {
1190+
args: {
1191+
'filter-name': {
1192+
positional: true,
1193+
type: doveadm_arg_types.STRING,
1194+
text: `Configuration filter name to use.`
1195+
},
1196+
'source-path': {
1197+
type: doveadm_arg_types.STRING,
1198+
text: `Source object path.`,
1199+
},
1200+
'destination-path': {
1201+
type: doveadm_arg_types.STRING,
1202+
text: `Destination object path.`,
1203+
},
1204+
},
1205+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1206+
man: 'doveadm-mail-fs',
1207+
text: `Copy object in storage.`,
1208+
},
1209+
1210+
'mail fs delete': {
1211+
args: {
1212+
recursive: {
1213+
cli: 'R',
1214+
type: doveadm_arg_types.BOOL,
1215+
text: `Do recursive delete of path.`
1216+
},
1217+
'max-parallel': {
1218+
cli: 'n',
1219+
type: doveadm_arg_types.INTEGER,
1220+
text: `Max number of parallel workers.`,
1221+
},
1222+
'filter-name': {
1223+
positional: true,
1224+
type: doveadm_arg_types.STRING,
1225+
text: `Configuration filter name to use.`
1226+
},
1227+
path: {
1228+
positional: true,
1229+
type: doveadm_arg_types.STRING,
1230+
text: `Object path.`,
1231+
},
1232+
},
1233+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1234+
man: 'doveadm-mail-fs',
1235+
text: `Delete object from storage.`,
1236+
},
1237+
1238+
'mail fs get': {
1239+
args: {
1240+
'filter-name': {
1241+
positional: true,
1242+
type: doveadm_arg_types.STRING,
1243+
text: `Configuration filter name to use.`
1244+
},
1245+
path: {
1246+
positional: true,
1247+
type: doveadm_arg_types.STRING,
1248+
text: `Object path.`,
1249+
},
1250+
},
1251+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1252+
man: 'doveadm-mail-fs',
1253+
text: `Get object from storage.`,
1254+
},
1255+
1256+
'mail fs iter': {
1257+
args: {
1258+
'no-cache': {
1259+
cli: 'C',
1260+
type: doveadm_arg_types.BOOL
1261+
},
1262+
'object-ids': {
1263+
cli: 'O',
1264+
type: doveadm_arg_types.BOOL
1265+
},
1266+
'filter-name': {
1267+
positional: true,
1268+
type: doveadm_arg_types.STRING,
1269+
text: `Configuration filter name to use.`
1270+
},
1271+
path: {
1272+
positional: true,
1273+
type: doveadm_arg_types.STRING,
1274+
text: `Object path.`,
1275+
},
1276+
},
1277+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1278+
man: 'doveadm-mail-fs',
1279+
text: `List objects in fs path.`,
1280+
},
1281+
1282+
'mail fs iter-dirs': {
1283+
args: {
1284+
'filter-name': {
1285+
positional: true,
1286+
type: doveadm_arg_types.STRING,
1287+
text: `Configuration filter name to use.`
1288+
},
1289+
path: {
1290+
positional: true,
1291+
type: doveadm_arg_types.STRING,
1292+
text: `Object path.`,
1293+
},
1294+
},
1295+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1296+
man: 'doveadm-mail-fs',
1297+
text: `List folders in fs path.`,
1298+
},
1299+
1300+
'mail fs metadata': {
1301+
args: {
1302+
'filter-name': {
1303+
positional: true,
1304+
type: doveadm_arg_types.STRING,
1305+
text: `Configuration filter name to use.`
1306+
},
1307+
path: {
1308+
positional: true,
1309+
type: doveadm_arg_types.STRING,
1310+
text: `Object path.`,
1311+
},
1312+
},
1313+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1314+
man: 'doveadm-mail-fs',
1315+
},
1316+
1317+
'mail fs put': {
1318+
args: {
1319+
hash: {
1320+
cli: 'h',
1321+
type: doveadm_arg_types.STRING
1322+
},
1323+
metadata: {
1324+
cli: 'm',
1325+
type: doveadm_arg_types.ARRAY
1326+
},
1327+
'filter-name': {
1328+
positional: true,
1329+
type: doveadm_arg_types.STRING,
1330+
text: `Configuration filter name to use.`
1331+
},
1332+
'input-path': {
1333+
positional: true,
1334+
type: doveadm_arg_types.STRING,
1335+
text: `Object input path.`,
1336+
},
1337+
path: {
1338+
positional: true,
1339+
type: doveadm_arg_types.STRING,
1340+
text: `Object path.`,
1341+
},
1342+
},
1343+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1344+
man: 'doveadm-mail-fs',
1345+
text: `Store object in storage.`,
1346+
},
1347+
1348+
'mail fs stat': {
1349+
args: {
1350+
'filter-name': {
1351+
positional: true,
1352+
type: doveadm_arg_types.STRING,
1353+
text: `Configuration filter name to use.`
1354+
},
1355+
path: {
1356+
positional: true,
1357+
type: doveadm_arg_types.STRING,
1358+
text: `Object path.`,
1359+
},
1360+
},
1361+
flags: doveadm_flag_types.USER | doveadm_flag_types.USERFILE,
1362+
man: 'doveadm-mail-fs',
1363+
text: `Retrieve files status for the path provided. Currently, only the total size (in bytes) of the item is returned.`,
1364+
},
1365+
11891366
'mailbox cache decision': {
11901367
args: {
11911368
all: {

docs/core/man/doveadm.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ Dovecot doesn't automatically do that.
153153

154154
[[man,doveadm-index]], Index messages in a given mailbox.
155155

156+
### doveadm mail fs
157+
158+
[[man,doveadm-mail-fs]], Interact with the abstract mail storage filesystem
159+
in a user context.
160+
156161
### doveadm mailbox
157162

158163
[[man,doveadm-mailbox]], Various commands related to handling mailboxes.

0 commit comments

Comments
 (0)