senddoc.sh (9f22d7c2) | senddoc.sh (ef10396e) |
---|---|
1#!/bin/sh 2# ************************************************************* 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 117 unchanged lines hidden (view full) --- 126 fi 127 if [ "$ATTACH" != "" ]; then 128 COMMAND=${COMMAND:-}${COMMAND:+,}attachment=${ATTACH} 129 fi 130 131 run_mozilla "$MAILER" "$COMMAND" 132 ;; 133 | 1#!/bin/sh 2# ************************************************************* 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 117 unchanged lines hidden (view full) --- 126 fi 127 if [ "$ATTACH" != "" ]; then 128 COMMAND=${COMMAND:-}${COMMAND:+,}attachment=${ATTACH} 129 fi 130 131 run_mozilla "$MAILER" "$COMMAND" 132 ;; 133 |
134 kmail) 135 136 while [ "$1" != "" ]; do 137 case $1 in 138 --to) 139 TO="${TO:-}${TO:+,}$2" 140 shift 141 ;; 142 --cc) 143 CC="${CC:-}${CC:+,}$2" 144 shift 145 ;; 146 --bcc) 147 BCC="${BCC:-}${BCC:+,}$2" 148 shift 149 ;; 150 --subject) 151 SUBJECT="$2" 152 shift 153 ;; 154 --body) 155 BODY="$2" 156 shift 157 ;; 158 --attach) 159 ATTACH="$2" 160 shift 161 ;; 162 *) 163 ;; 164 esac 165 shift; 166 done | 134 kmail) 135 136 while [ "$1" != "" ]; do 137 case $1 in 138 --to) 139 TO="${TO:-}${TO:+,}$2" 140 shift 141 ;; 142 --cc) 143 CC="${CC:-}${CC:+,}$2" 144 shift 145 ;; 146 --bcc) 147 BCC="${BCC:-}${BCC:+,}$2" 148 shift 149 ;; 150 --subject) 151 SUBJECT="$2" 152 shift 153 ;; 154 --body) 155 BODY="$2" 156 shift 157 ;; 158 --from) 159 FROM="$2" 160 shift 161 ;; 162 --attach) 163 ATTACH="${ATTACH:-}${ATTACH:+ }--attach "`echo "file://$2" | ${URI_ENCODE}` 164 shift 165 ;; 166 *) 167 ;; 168 esac 169 shift; 170 done 171 172 ${MAILER} --composer \ 173 ${CC:+--cc} ${CC:+"${CC}"} \ 174 ${BCC:+--bcc} ${BCC:+"${BCC}"} \ 175 ${SUBJECT:+--subject} ${SUBJECT:+"${SUBJECT}"} \ 176 ${BODY:+--body} ${BODY:+"${BODY}"} \ 177 ${FROM:+--header} ${FROM:+"From: ${FROM}"} \ 178 ${ATTACH:+${ATTACH}} \ 179 ${TO:+"${TO}"} 180 ;; |
167 | 181 |
168 ${MAILER} --composer ${CC:+--cc} ${CC:+"${CC}"} ${BCC:+--bcc} ${BCC:+"${BCC}"} \ 169 ${SUBJECT:+--subject} ${SUBJECT:+"${SUBJECT}"} ${BODY:+--body} ${BODY:+"${BODY}"} \ 170 ${ATTACH:+--attach} ${ATTACH:+"${ATTACH}"} ${TO:+"${TO}"} 171 ;; 172 | |
173 mutt) 174 175 while [ "$1" != "" ]; do 176 case $1 in 177 --from) 178 FROM="$2" 179 shift 180 ;; --- 241 unchanged lines hidden --- | 182 mutt) 183 184 while [ "$1" != "" ]; do 185 case $1 in 186 --from) 187 FROM="$2" 188 shift 189 ;; --- 241 unchanged lines hidden --- |