, inputFile :: String
, lineMode :: Bool
, confirm :: Bool
- , msgtimestamp :: Maybe Timestamp
, msgid :: Maybe Text
, msgtype :: Maybe Text
- , msguserid :: Maybe Text
- , msgappid :: Maybe Text
- , msgclusterid :: Maybe Text
- , msgcontenttype :: Maybe Text
- , msgcontentencoding :: Maybe Text
- , msgreplyto :: Maybe Text
- , msgprio :: Maybe Octet
- , msgcorrid :: Maybe Text
+ , userid :: Maybe Text
+ , appid :: Maybe Text
+ , clusterid :: Maybe Text
+ , contenttype :: Maybe Text
+ , contentencoding :: Maybe Text
+ , replyto :: Maybe Text
+ , prio :: Maybe Octet
+ , corrid :: Maybe Text
, msgexp :: Maybe Text
, msgheader :: Maybe FieldTable
, fnheader :: [ String ]
Nothing
Nothing
Nothing
- Nothing
[]
[]
["confirm"]
(NoArg (\o -> o {confirm = not (confirm o)}))
("Toggle confirms (default: " ++ show (confirm def) ++ ")")
- , Option
- []
- ["msgtimestamp"]
- (ReqArg (\s o -> o {msgtimestamp = Just $ read s}) "TIMESTAMP")
- ("Message Timestamp")
, Option
[]
["msgid"]
("Message ID")
, Option
[]
- ["msgtype"]
+ ["type"]
(ReqArg (\s o -> o {msgtype = Just $ pack s}) "TYPE")
("Message Type")
, Option
[]
- ["msguserid"]
- (ReqArg (\s o -> o {msguserid = Just $ pack s}) "USERID")
- ("Message UserID")
+ ["userid"]
+ (ReqArg (\s o -> o {userid = Just $ pack s}) "USERID")
+ ("Message User-ID")
, Option
[]
- ["msgappid"]
- (ReqArg (\s o -> o {msgappid = Just $ pack s}) "APPID")
- ("Message ApplicationID")
+ ["appid"]
+ (ReqArg (\s o -> o {appid = Just $ pack s}) "APPID")
+ ("Message App-ID")
, Option
[]
- ["msgclusterid"]
- (ReqArg (\s o -> o {msgclusterid = Just $ pack s}) "CLUSTERID")
- ("Message ClusterID")
+ ["clusterid"]
+ (ReqArg (\s o -> o {clusterid = Just $ pack s}) "CLUSTERID")
+ ("Message Cluster-ID")
, Option
[]
- ["msgcontenttype"]
- (ReqArg (\s o -> o {msgcontenttype = Just $ pack s}) "CONTENTTYPE")
- ("Message ContentType")
+ ["contenttype"]
+ (ReqArg (\s o -> o {contenttype = Just $ pack s}) "CONTENTTYPE")
+ ("Message Content-Type")
, Option
[]
- ["msgcontentencoding"]
+ ["contentencoding"]
(ReqArg
- (\s o -> o {msgcontentencoding = Just $ pack s})
+ (\s o -> o {contentencoding = Just $ pack s})
"CONTENTENCODING")
- ("Message ContentEncoding")
+ ("Message Content-Encoding")
, Option
[]
- ["msgreplyto"]
- (ReqArg (\s o -> o {msgreplyto = Just $ pack s}) "REPLYTO")
- ("Message ReplyTo")
+ ["replyto"]
+ (ReqArg (\s o -> o {replyto = Just $ pack s}) "REPLYTO")
+ ("Message Reply-To")
, Option
[]
- ["msgprio"]
- (ReqArg (\s o -> o {msgprio = Just $ read s}) "PRIO")
+ ["prio"]
+ (ReqArg (\s o -> o {prio = Just $ read s}) "PRIO")
("Message Priority")
, Option
[]
- ["msgcorrid"]
- (ReqArg (\s o -> o {msgcorrid = Just $ pack s}) "CORRID")
+ ["corrid"]
+ (ReqArg (\s o -> o {corrid = Just $ pack s}) "CORRID")
("Message CorrelationID")
, Option
[]
- ["msgexp"]
+ ["exp"]
(ReqArg (\s o -> o {msgexp = Just $ pack s}) "EXP")
("Message Expiration")
, Option
['F']
["fnheader"]
(ReqArg (\s o -> o {fnheader = s:(fnheader o)}) "HEADERNAME")
- ("Message Header for filename")
+ ("Put filename into this header")
, Option
['S']
["suffix"]
(ReqArg (\s o -> o {suffix = s:(suffix o)}) "SUFFIX")
- ("Allowed file suffixes for hotfolder mode")
+ ("Allowed file suffixes in hotfolder mode")
]
-- | Options for the executables
, msgTimestamp = Just now
, msgID = msgid a
, msgType = msgtype a
- , msgUserID = msguserid a
- , msgApplicationID = msgappid a
- , msgClusterID = msgclusterid a
- , msgContentType = msgcontenttype a
- , msgContentEncoding = msgcontentencoding a
- , msgReplyTo = msgreplyto a
- , msgPriority = msgprio a
- , msgCorrelationID = msgcorrid a
+ , msgUserID = userid a
+ , msgApplicationID = appid a
+ , msgClusterID = clusterid a
+ , msgContentType = contenttype a
+ , msgContentEncoding = contentencoding a
+ , msgReplyTo = replyto a
+ , msgPriority = prio a
+ , msgCorrelationID = corrid a
, msgExpiration = msgexp a
, msgHeaders = substheader (fnheader a) fn $ msgheader a
}