## ## Configuration file for email2sms ## # Maximum number of characters in output. # Remember, this should be /less/ than 160 if your SMS gateway adds # text to the message during sending. maxlen 160 # Name of file to log to (~ and $ environment interpolation work) # If no file is specified, no logging will occur logfile ~/.email2sms.log # Delimiter for From header, Subject header, and body section '$' # Replace all new lines with this delimiter newline '$' # Perl regular expressions to match attribution and quoted lines # N.B. Both must be defined for either to have any effect attrib '^.*?\s+(wrote|writes):\s*$' quoted '^\s*[}>]\s*' # # Perl substitutions to perform on From header # (these get eval()ed - careful!) # fromsub s/\s*"?(.*?)"?\s+<.*>\s*/$1/ fromsub s/\.uk$// fromsub s/\.\w+$// # Define which squeeze modes to try in turn in an attempt to get # the message smaller than maxlen characters. # Comment this out for no compression: squeeze noconv, conv, med, max # Decide squeeze optimization level. Choose either 0 or 1. 1 # improves compression by an average of 10%, but the text is maybe # harder to read (although personally I don't find it noticeably # harder). optimize 1 # If this regexp matches the sender, let see them see what their # message was sent as via an email response. # # If it's undefined, the response will never be sent. If it's //, it # will match any sender, and so send a response every time. #respond /adam-respond-test/ # From address to use when sending the auto-response. This is only # needed if a response might be sent. #response-from my-autoreply@my.domain.com # SMTP host to use for sending the auto-response. This is only needed # if a response might be sent. #smtphost localhost